Skip to content

Commit

Permalink
MingGW compilers have visibility
Browse files Browse the repository at this point in the history
Applies to both GCC and Clang on Windows
  • Loading branch information
kmilos authored Nov 24, 2023
1 parent be7cc28 commit 7090636
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ add_executable(graec graec.c)
target_link_libraries(graec aec)

include(GNUInstallDirs)
if(UNIX)
if(UNIX OR MINGW)
# Handle visibility of symbols. Compatible with gnulib's gl_VISIBILITY
include(CheckCCompilerFlag)
check_c_compiler_flag(-fvisibility=hidden COMPILER_HAS_HIDDEN_VISIBILITY)
Expand Down

0 comments on commit 7090636

Please sign in to comment.