We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 68352ae commit 80130c7Copy full SHA for 80130c7
src/lib/third_party/numerics/CMakeLists.txt
@@ -9,7 +9,15 @@ if(WIN32)
9
# but I know no other option...)
10
string(REGEX REPLACE "/W[0-4]" "/W0" CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
11
else()
12
- add_definitions(-w -fcommon)
+ if(VORPALINE_PLATFORM STREQUAL "Emscripten-clang")
13
+# -fcommon is broken in latest clang
14
+ add_definitions(-w)
15
+ else()
16
+# -fcommon: merges uninitialized variables declarations (supposes that the
17
+# 'extern' keyword was missing, avoid duplicated symbols errors in legacy
18
+# code that was not properly declaring extern variables).
19
+ add_definitions(-w -fcommon)
20
+ endif()
21
endif()
22
23
include_directories(${GEOGRAM_SOURCE_DIR}/src/lib/third_party/numerics/INCLUDE)
0 commit comments