Skip to content

Commit 47ed2bf

Browse files
authored
[flang] cmake fix for FLANG_RUNTIME_F128_MATH_LIB build (#93054)
Remove an extra '-D' in the call to add_compile_definitions. The extra -D causes -D-DFLANG_RUNTIME_F128_MATH_LIB=libquadmath to appear in compile options which results in a compilation failure. This occurs only on systems using cmake versions 3.22.1 or 3.24.3. Using cmake 3.28.1 seems to automatically remove the duplicate -D. Fixes #81971
1 parent ff3f41d commit 47ed2bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flang/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ endif()
336336

337337
if (FLANG_RUNTIME_F128_MATH_LIB)
338338
add_compile_definitions(
339-
-DFLANG_RUNTIME_F128_MATH_LIB="${FLANG_RUNTIME_F128_MATH_LIB}"
339+
FLANG_RUNTIME_F128_MATH_LIB="${FLANG_RUNTIME_F128_MATH_LIB}"
340340
)
341341
endif()
342342

0 commit comments

Comments
 (0)