File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -86,15 +86,15 @@ endif()
86
86
# Keep this at the top to make sure we don't add _GNU_SOURCE dependent checks
87
87
# before adding it.
88
88
check_symbol_exists(__GLIBC__ stdio.h LLVM_USING_GLIBC)
89
- if (LLVM_USING_GLIBC)
89
+ if (LLVM_USING_GLIBC OR CYGWIN )
90
90
add_compile_definitions (_GNU_SOURCE)
91
91
list (APPEND CMAKE_REQUIRED_DEFINITIONS "-D_GNU_SOURCE" )
92
+ endif ()
92
93
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" )
98
98
endif ()
99
99
100
100
# include checks
You can’t perform that action at this time.
0 commit comments