Files
MINGW-packages/mingw-w64-flang/0002-cmake-22162.patch
Jeremy Drake 1acfc2496e flang: new package split from clang
flang takes too much memory to build with default jobs, so split it off
into its own package, with logic to reduce parallel jobs based on
memory.
2021-10-15 22:46:57 -07:00

14 lines
664 B
Diff

--- a/CMakeLists.txt 2021-10-04 13:49:12.582319800 -0700
+++ b/CMakeLists.txt 2021-10-04 13:54:57.833484200 -0700
@@ -110,7 +110,9 @@
# LLVM_INCLUDE_DIRS when merging in the monorepo (Warning from flang headers
# should not be suppressed).
include_directories(SYSTEM ${LLVM_INCLUDE_DIRS})
- add_definitions(${LLVM_DEFINITIONS})
+ # https://gitlab.kitware.com/cmake/cmake/-/issues/22162
+ separate_arguments(LLVM_DEFINITIONS_LIST NATIVE_COMMAND ${LLVM_DEFINITIONS})
+ add_definitions(${LLVM_DEFINITIONS_LIST})
# LLVM's cmake configuration files currently sneak in a c++11 flag.
# We look for it here and remove it from Flang's compile flags to