File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -53,8 +53,6 @@ fn find_files_recursively<P: AsRef<Path>>(
5353}
5454
5555fn platform_install_paths ( ) -> Result < InstallPath , Box < dyn std:: error:: Error > > {
56- // let platform = env::var("PLATFORM");
57-
5856 if cfg ! ( target_os = "windows" ) {
5957 // defaults to path:
6058 // C:\Users\Default\AppData\Local
@@ -156,8 +154,11 @@ fn find_metacall_library() -> Result<PathBuf, Box<dyn std::error::Error>> {
156154}
157155
158156fn main ( ) {
157+ println ! ( "------------ BEGIN ------------" ) ;
158+
159159 // When running tests from CMake
160160 if let Ok ( val) = env:: var ( "PROJECT_OUTPUT_DIR" ) {
161+ println ! ( "cargo:warning=Using CMake build path: {}" , val) ;
161162 println ! ( "cargo:rustc-link-search=native={val}" ) ;
162163
163164 match env:: var ( "CMAKE_BUILD_TYPE" ) {
@@ -171,6 +172,8 @@ fn main() {
171172 return ;
172173 }
173174
175+ println ! ( "cargo:warning=Using pure Cargo build, searching for MetaCall..." ) ;
176+
174177 // When building from Cargo - try to find MetaCall
175178 match find_metacall_library ( ) {
176179 Ok ( lib_path) => {
You can’t perform that action at this time.
0 commit comments