Skip to content

Commit

Permalink
WIP: build-llvm: Skip hardcoding custom defaults into the clang/lld e…
Browse files Browse the repository at this point in the history
…xecutables

We use wrappers, with the intent that we should be usable with
a stock build of clang/lld as well; try building such a config
to see if it works.
  • Loading branch information
mstorsjo committed Apr 22, 2024
1 parent fbd89c0 commit 6f5cfb9
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions build-llvm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -239,17 +239,6 @@ if [ -n "$COMPILER_LAUNCHER" ]; then
CMAKEFLAGS="$CMAKEFLAGS -DCMAKE_CXX_COMPILER_LAUNCHER=$COMPILER_LAUNCHER"
fi

if [ -n "$TARGET_WINDOWS" ]; then
# Custom, llvm-mingw specific defaults. We normally set these in
# the frontend wrappers, but this makes sure they are enabled by
# default if that wrapper is bypassed as well.
CMAKEFLAGS="$CMAKEFLAGS -DCLANG_DEFAULT_RTLIB=compiler-rt"
CMAKEFLAGS="$CMAKEFLAGS -DCLANG_DEFAULT_UNWINDLIB=libunwind"
CMAKEFLAGS="$CMAKEFLAGS -DCLANG_DEFAULT_CXX_STDLIB=libc++"
CMAKEFLAGS="$CMAKEFLAGS -DCLANG_DEFAULT_LINKER=lld"
CMAKEFLAGS="$CMAKEFLAGS -DLLD_DEFAULT_LD_LLD_IS_MINGW=ON"
fi

if [ -n "$LTO" ]; then
CMAKEFLAGS="$CMAKEFLAGS -DLLVM_ENABLE_LTO=$LTO"
fi
Expand Down

0 comments on commit 6f5cfb9

Please sign in to comment.