aboutsummaryrefslogtreecommitdiff
path: root/runtimes
diff options
context:
space:
mode:
authorJoseph Huber <huberjn@outlook.com>2023-11-27 08:12:32 -0600
committerJoseph Huber <huberjn@outlook.com>2023-11-27 14:06:53 -0600
commitee922e6ebfb6aab722f6b0f7cfc0c20af636a250 (patch)
tree85ce64f2d865ea67902d50a66f71b510d4e71b45 /runtimes
parent2b7cca1ccfea5f3ff233afa7f85bf84cf41226ef (diff)
downloadllvm-ee922e6ebfb6aab722f6b0f7cfc0c20af636a250.zip
llvm-ee922e6ebfb6aab722f6b0f7cfc0c20af636a250.tar.gz
llvm-ee922e6ebfb6aab722f6b0f7cfc0c20af636a250.tar.bz2
[llvm] Disable HandleLLVMOptions in runtimes mode (#73031)
Summary: There are a few default options that LLVM adds that can be problematic for runtimes builds. These options are generally intended to handle building LLVM itself, but are also added when building in a runtimes mode. One such issue I've run into is that in `libc` we deliberately use `--target` to use a different device toolchain, which doesn't support some linker arguments passed via `-Wl`. This is observed in https://github.com/llvm/llvm-project/pull/73030 when attempting to use these options. This patch completely removes these default arguments. The consensus is that any issues created by this patch should ultimately be solved on a per-runtime basis.
Diffstat (limited to 'runtimes')
-rw-r--r--runtimes/CMakeLists.txt2
1 files changed, 0 insertions, 2 deletions
diff --git a/runtimes/CMakeLists.txt b/runtimes/CMakeLists.txt
index 010ec87..603a328 100644
--- a/runtimes/CMakeLists.txt
+++ b/runtimes/CMakeLists.txt
@@ -151,9 +151,7 @@ endif()
# Avoid checking whether the compiler is working.
set(LLVM_COMPILER_CHECKED ON)
-# Handle common options used by all runtimes.
include(AddLLVM)
-include(HandleLLVMOptions)
find_package(Python3 REQUIRED COMPONENTS Interpreter)