File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -86,15 +86,15 @@ endif()
8686# Keep this at the top to make sure we don't add _GNU_SOURCE dependent checks
8787# before adding it.
8888check_symbol_exists (__GLIBC__ stdio.h LLVM_USING_GLIBC )
89- if (LLVM_USING_GLIBC)
89+ if (LLVM_USING_GLIBC OR CYGWIN )
9090 add_compile_definitions (_GNU_SOURCE )
9191 list (APPEND CMAKE_REQUIRED_DEFINITIONS "-D_GNU_SOURCE" )
92+ endif ()
9293
93- # enable 64bit off_t on 32bit systems using glibc
94- if (CMAKE_SIZEOF_VOID_P EQUAL 4)
95- add_compile_definitions (_FILE_OFFSET_BITS=64 )
96- list (APPEND CMAKE_REQUIRED_DEFINITIONS "-D_FILE_OFFSET_BITS=64" )
97- endif ()
94+ # enable 64bit off_t on 32bit systems using glibc
95+ if (LLVM_USING_GLIBC AND CMAKE_SIZEOF_VOID_P EQUAL 4)
96+ add_compile_definitions (_FILE_OFFSET_BITS=64 )
97+ list (APPEND CMAKE_REQUIRED_DEFINITIONS "-D_FILE_OFFSET_BITS=64" )
9898endif ()
9999
100100# include checks
You can’t perform that action at this time.
0 commit comments