Skip to content

Commit 2b7ad0e

Browse files
committed
stash
1 parent 668da9d commit 2b7ad0e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

source/ports/rs_port/build.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,6 @@ fn find_files_recursively<P: AsRef<Path>>(
5353
}
5454

5555
fn 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

158156
fn 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) => {

0 commit comments

Comments
 (0)