[llvm] [llvm] Disable HandleLLVMOptions in runtimes mode (PR #73031)

Joseph Huber via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 21 14:19:27 PST 2023


https://github.com/jhuber6 updated https://github.com/llvm/llvm-project/pull/73031

>From 7330ba43c8370c0e49d85c37c0157eb83dfa9442 Mon Sep 17 00:00:00 2001
From: Joseph Huber <huberjn at outlook.com>
Date: Tue, 21 Nov 2023 14:06:38 -0600
Subject: [PATCH] [llvm] Disable some LLVM arguments in runtimes mode

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.
---
 runtimes/CMakeLists.txt | 1 -
 1 file changed, 1 deletion(-)

diff --git a/runtimes/CMakeLists.txt b/runtimes/CMakeLists.txt
index 010ec879e44a322..4c580aa3197ef1d 100644
--- a/runtimes/CMakeLists.txt
+++ b/runtimes/CMakeLists.txt
@@ -153,7 +153,6 @@ set(LLVM_COMPILER_CHECKED ON)
 
 # Handle common options used by all runtimes.
 include(AddLLVM)
-include(HandleLLVMOptions)
 
 find_package(Python3 REQUIRED COMPONENTS Interpreter)
 



More information about the llvm-commits mailing list