Skip to content

Commit

Permalink
fix: /cgnutools/include/$TARGET_TUPLE/c++/v1 for __config_site at LLV…
Browse files Browse the repository at this point in the history
…M 1st stage

Discovered this while building Copacabana's toolchain.
Fixes dslm4515#72.
  • Loading branch information
takusuman authored Jan 4, 2025
1 parent 5c47590 commit 4de6732
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions 1-Stage0/7-LLVM.stage0
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ mv -v /cgnutools/lib/gcc{,-disabled}
cat > /cgnutools/bin/${TARGET_TUPLE}.cfg <<EOF
-L/cgnutools/lib
-nostdinc++
-I/cgnutools/include/$TARGET_TUPLE/c++/v1
-I/cgnutools/include/c++/v1
-I/llvmtools/include
EOF
Expand Down Expand Up @@ -176,6 +177,7 @@ grep ld.lld: dummy.log
grep -B2 -A1 '^ /llvmtools/include' dummy.log
# It should output in this order:
# /cgnutools/include/c++/v1
# /cgnutools/include/x86_64-pc-linux-musl/c++/v1
# /llvmtools/include
# /mnt/cmlfs/cgnutools/lib/clang/15.0.6/include
# NOTE: The libc++ headers should be searched first before any other header directories.
Expand Down

0 comments on commit 4de6732

Please sign in to comment.