Skip to content

Commit

Permalink
build: match Clang but not AppleClang
Browse files Browse the repository at this point in the history
  • Loading branch information
kanru committed Jan 1, 2024
1 parent cd01a44 commit f517e96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ if(WITH_RUST)
target_link_libraries(libchewing PRIVATE chewing)
target_link_libraries(chewing INTERFACE ${SQLite3_LIBRARIES})
if(BUILD_SHARED_LIBS)
if(CMAKE_C_COMPILER_ID MATCHES GNU|Clang)
if(CMAKE_C_COMPILER_ID MATCHES GNU|^Clang)
target_link_options(libchewing
PRIVATE LINKER:-version-script,${CMAKE_BINARY_DIR}/symbols.map
PRIVATE LINKER:--gc-sections
Expand Down

0 comments on commit f517e96

Please sign in to comment.