mirror of
https://github.com/rdkit/rdkit.git
synced 2026-06-03 21:44:30 +08:00
RDKit's InChi build tries to guess whether the C compiler provides (#8764)
isascii() (which is the standard) or __isascii(), but it guesses wrong for Emscripten builds (which I do during sketcher compilation). This change passes -D__isascii=isascii when building InChi, which means that the wrong guess will still wind up with the right function name.
This commit is contained in:
4
External/INCHI-API/CMakeLists.txt
vendored
4
External/INCHI-API/CMakeLists.txt
vendored
@@ -71,10 +71,10 @@ if(RDK_BUILD_INCHI_SUPPORT)
|
||||
endif()
|
||||
|
||||
if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-comment -Wno-parentheses -Wno-logical-op-parentheses -Wno-pointer-bool-conversion -Wno-unused-value -Wno-unsequenced -Wno-constant-logical-operand")
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-comment -Wno-parentheses -Wno-logical-op-parentheses -Wno-pointer-bool-conversion -Wno-unused-value -Wno-unsequenced -Wno-constant-logical-operand -D__isascii=isascii")
|
||||
endif()
|
||||
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wformat-overflow=0 -Wformat=0 -Wno-format-security")
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wformat-overflow=0 -Wformat=0 -Wno-format-security -D__isascii=isascii")
|
||||
endif()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user