Skip to content

Commit 323f24f

Browse files
committed
Pass CC and CXX environmental variables
manylinux images default to gcc. Using CC=clang and CXX=clang++ with appropriate LDFLAGS and RUSTFLAGS allows cross-language LTO of Rust, C, and C++ with LLVM and LLD.
1 parent b9e8f88 commit 323f24f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,9 @@ async function dockerBuild(
614614
env.startsWith('PYO3_') ||
615615
env.startsWith('TARGET_') ||
616616
env.startsWith('CMAKE_') ||
617+
env.startsWith('CC') ||
617618
env.startsWith('CFLAGS') ||
619+
env.startsWith('CXX') ||
618620
env.startsWith('CXXFLAGS') ||
619621
env.startsWith('CPPFLAGS') ||
620622
env.startsWith('LDFLAGS') ||

0 commit comments

Comments
 (0)