Skip to content

Commit

Permalink
Update build.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
thegecko authored Sep 23, 2024
1 parent 5fdcdcb commit 1f6d696
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ cmake -B llvm-build -S llvm-src/llvm \
-DLLVM_TOOL_LLVM_DIS_BUILD=OFF \
-DLLVM_TOOL_LLVM_DIS_FUZZER_BUILD=OFF \
-DLLVM_TOOL_LLVM_DLANG_DEMANGLE_FUZZER_BUILD=OFF \
-DLLVM_TOOL_LLVM_DRIVER_BUILD=ON \
-DLLVM_TOOL_LLVM_DWARFDUMP_BUILD=ON \
-DLLVM_TOOL_LLVM_DWARFUTIL_BUILD=OFF \
-DLLVM_TOOL_LLVM_DWP_BUILD=OFF \
Expand Down Expand Up @@ -221,7 +220,7 @@ cmake -B llvm-build -S llvm-src/llvm \
# The "all" target still contains far too much stuff, even given all the options above, so build
# only Clang/LLD, explicitly. For the same reason using the "install" target is infeasible.
# I spent a while trying and it leads nowhere.
cmake --build llvm-build --target llvm-driver
cmake --build llvm-build --target clangd
cmake --build llvm-build --target install-core-resource-headers

# Install the driver (which is a multi-call binary) manually.
Expand Down Expand Up @@ -281,9 +280,3 @@ cmake -B libcxx-build -S llvm-src/runtimes \
-DLIBCXXABI_LIBDIR_SUFFIX=/${WASI_TARGET} \
-DCMAKE_INSTALL_PREFIX=wasi-prefix
cmake --build libcxx-build --target install

# Crimees. For testing only!
cp driverdriver.py wasi-prefix/bin/
for tool in $(__DRIVERDRIVER_LIST=1 ./driverdriver.py); do
ln -sf driverdriver.py wasi-prefix/bin/${tool}
done

0 comments on commit 1f6d696

Please sign in to comment.