Skip to content

Commit bcf2e6e

Browse files
jschwesagudev
authored andcommitted
Also respect readelf and objcopy cc-rs variants
While compiling servo for OpenHarmony on a MacOS host, I noticed that readelf and objcopy apparently aren't chosen from the same directory as the clang c compiler, but needed to be in PATH for the configure script to pick them up. To allow users to set READELF and OBJCOPY explicitly, we should also read the relevant cc-rs environment variables. An alternative would have been to inspect the configure scripts and find out why they don't look next to clang, but I'm not familiar enough with the configure script.
1 parent a6c9fc8 commit bcf2e6e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mozjs-sys/build.rs

+2
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ const SM_TARGET_ENV_VARS: &'static [&'static str] = &[
4545
"CPPFLAGS",
4646
"CXX",
4747
"CXXFLAGS",
48+
"READELF",
49+
"OBJCOPY",
4850
];
4951

5052
const EXTRA_FILES: &'static [&'static str] = &[

0 commit comments

Comments
 (0)