[PATCH] D109593: WIP: [libcxx] Add a CI configuration for standalone building in llvm-project/runtimes
Petr Hosek via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Sep 12 14:22:28 PDT 2021
phosek added inline comments.
================
Comment at: runtimes/CMakeLists.txt:77-82
# This variable makes sure that e.g. llvm-lit is found.
-set(LLVM_MAIN_SRC_DIR ${LLVM_BUILD_MAIN_SRC_DIR})
+set(LLVM_MAIN_SRC_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../llvm)
set(LLVM_CMAKE_PATH ${LLVM_MAIN_SRC_DIR}/cmake/modules)
# This variable is used by individual runtimes to locate LLVM files.
+set(LLVM_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../llvm)
----------------
Can we land this change as a separate commit?
================
Comment at: runtimes/CMakeLists.txt:95
-if (NOT MSVC)
- set(CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS} -nostdinc++ -nostdlib++")
-endif()
----------------
Rather than removing this altogether, could we either check if the compiler supports these flags or if the compiler is Clang?
================
Comment at: runtimes/CMakeLists.txt:95
-if (NOT MSVC)
- set(CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS} -nostdinc++ -nostdlib++")
-endif()
----------------
phosek wrote:
> Rather than removing this altogether, could we either check if the compiler supports these flags or if the compiler is Clang?
`-nostdinc++` should be support by GCC.
================
Comment at: runtimes/CMakeLists.txt:100-103
+if (NOT LLVM_DEFAULT_TARGET_TRIPLE)
+ include(GetHostTriple)
+ get_host_triple(LLVM_DEFAULT_TARGET_TRIPLE)
+endif()
----------------
Can we land this change as a separate commit?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D109593/new/
https://reviews.llvm.org/D109593
More information about the llvm-commits
mailing list