[compiler-rt] 6d71c4e - [ORC-RT] unit tests do not need access to LLVM headers.
Lang Hames via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 29 14:45:13 PDT 2022
Author: Lang Hames
Date: 2022-08-29T14:45:02-07:00
New Revision: 6d71c4e86bb1a7713200eee9156e00cc36141eef
URL: https://github.com/llvm/llvm-project/commit/6d71c4e86bb1a7713200eee9156e00cc36141eef
DIFF: https://github.com/llvm/llvm-project/commit/6d71c4e86bb1a7713200eee9156e00cc36141eef.diff
LOG: [ORC-RT] unit tests do not need access to LLVM headers.
Also delete trailing whitespace in lib/orc/CMakeLists.txt
Added:
Modified:
compiler-rt/lib/orc/CMakeLists.txt
compiler-rt/lib/orc/unittests/CMakeLists.txt
Removed:
################################################################################
diff --git a/compiler-rt/lib/orc/CMakeLists.txt b/compiler-rt/lib/orc/CMakeLists.txt
index 614836100940..2a2b056b8933 100644
--- a/compiler-rt/lib/orc/CMakeLists.txt
+++ b/compiler-rt/lib/orc/CMakeLists.txt
@@ -40,7 +40,7 @@ set(ORC_COMMON_IMPL_HEADERS
wrapper_function_utils.h
)
-# Implementation headers for all ORC architectures.
+# Implementation headers for all ORC architectures.
set(ALL_ORC_IMPL_HEADERS
${ORC_COMMON_IMPL_HEADERS}
macho_platform.h
@@ -87,7 +87,7 @@ if (APPLE)
macho_tlv.x86-64.S
macho_tlv.arm64.S
)
-
+
set(ORC_IMPL_HEADERS
${ORC_COMMON_IMPL_HEADERS}
macho_platform.h
@@ -136,13 +136,13 @@ else() # not Apple
${ORC_COMMON_IMPL_HEADERS}
elfnix_platform.h
)
-
+
set(ORC_SOURCES
${ORC_COMMON_SOURCES}
elfnix_platform.cpp
)
- add_asm_sources(ORC_ASM_SOURCES
+ add_asm_sources(ORC_ASM_SOURCES
elfnix_tls.x86-64.S
elfnix_tls.aarch64.S
)
diff --git a/compiler-rt/lib/orc/unittests/CMakeLists.txt b/compiler-rt/lib/orc/unittests/CMakeLists.txt
index 93eaace0adcc..aa6b2dc0f43c 100644
--- a/compiler-rt/lib/orc/unittests/CMakeLists.txt
+++ b/compiler-rt/lib/orc/unittests/CMakeLists.txt
@@ -12,11 +12,6 @@ set(ORC_UNITTEST_CFLAGS
-I${COMPILER_RT_SOURCE_DIR}/lib/orc
)
-# We add the include directories one at a time in our CFLAGS.
-foreach (DIR ${LLVM_INCLUDE_DIR} ${LLVM_MAIN_INCLUDE_DIR})
- list(APPEND ORC_UNITTEST_CFLAGS -I${DIR})
-endforeach()
-
function(add_orc_lib library)
add_library(${library} STATIC ${ARGN})
set_target_properties(${library} PROPERTIES
More information about the llvm-commits
mailing list