File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -132,6 +132,12 @@ elseif (CMAKE_CXX_COMPILER_ID MATCHES "XL")
132
132
set (NO_RTTI_FLAGS "-qnoeh -qnortti" )
133
133
endif ()
134
134
135
+ # When compiling LLVM_ENABLE_RUNTIMES=flang-rt, the build system looks for the
136
+ # full path of quadmath.h. In this non-runtimes build, preserve the old behavior
137
+ # of just including <quadmath.h>.
138
+ set (FLANG_RT_INCLUDE_QUADMATH_H "<quadmath.h>" )
139
+ configure_file ("${FLANG_RT_SOURCE_DIR} /cmake/quadmath_wrapper.h.in" "quadmath_wrapper.h" )
140
+
135
141
configure_file ("${FLANG_RT_SOURCE_DIR} /cmake/config.h.cmake.in" config.h )
136
142
# include_directories is used here instead of target_include_directories
137
143
# because add_flang_library creates multiple objects (STATIC/SHARED, OBJECT)
You can’t perform that action at this time.
0 commit comments