File tree 2 files changed +7
-1
lines changed
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,9 @@ if (FLANG_RUNTIME_HAS_FNO_LTO_FLAG)
42
42
append ("-fno-lto" CMAKE_CXX_FLAGS )
43
43
endif ()
44
44
45
-
45
+ # Disable libstdc++ assertions, even in an LLVM_ENABLE_ASSERTIONS build, to
46
+ # avoid an unwanted dependency on libstdc++.so.
47
+ add_definitions (-U_GLIBCXX_ASSERTIONS)
46
48
47
49
add_flang_library(FortranDecimal INSTALL_WITH_TOOLCHAIN
48
50
binary-to-decimal.cpp
Original file line number Diff line number Diff line change @@ -86,6 +86,10 @@ include_directories(AFTER ${CMAKE_CURRENT_BINARY_DIR})
86
86
append (${NO_LTO_FLAGS} CMAKE_C_FLAGS)
87
87
append (${NO_LTO_FLAGS} CMAKE_CXX_FLAGS )
88
88
89
+ # Disable libstdc++ assertions, even in an LLVM_ENABLE_ASSERTIONS build, to
90
+ # avoid an unwanted dependency on libstdc++.so.
91
+ add_definitions (-U_GLIBCXX_ASSERTIONS)
92
+
89
93
add_subdirectory (FortranMain)
90
94
91
95
add_flang_library(FortranRuntime
You can’t perform that action at this time.
0 commit comments