We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 173ec72 commit 31e9552Copy full SHA for 31e9552
llvm/cmake/config-ix.cmake
@@ -86,7 +86,7 @@ endif()
86
# Keep this at the top to make sure we don't add _GNU_SOURCE dependent checks
87
# before adding it.
88
check_symbol_exists(__GLIBC__ stdio.h LLVM_USING_GLIBC)
89
-if(LLVM_USING_GLIBC)
+if(LLVM_USING_GLIBC OR CYGWIN)
90
add_compile_definitions(_GNU_SOURCE)
91
list(APPEND CMAKE_REQUIRED_DEFINITIONS "-D_GNU_SOURCE")
92
0 commit comments