Skip to content

Commit 4651dd2

Browse files
committed
[LLVM][Cygwin] Remove special case for CXX extensions on Cygwin. (llvm#138328)
This is no longer necessary, and results in an inconvenient define of `i386` on i386 Cygwin targets which breaks compiling llvm/include/llvm/ExecutionEngine/JITLink/i386.h. Signed-off-by: Jeremy Drake <[email protected]>
1 parent 8c26f04 commit 4651dd2

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

llvm/CMakeLists.txt

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -77,14 +77,7 @@ endif()
7777

7878
set(CMAKE_CXX_STANDARD ${LLVM_REQUIRED_CXX_STANDARD} CACHE STRING "C++ standard to conform to")
7979
set(CMAKE_CXX_STANDARD_REQUIRED YES)
80-
81-
if (CYGWIN)
82-
# Cygwin is a bit stricter and lack things like 'strdup', 'stricmp', etc in
83-
# c++xx mode.
84-
set(CMAKE_CXX_EXTENSIONS YES)
85-
else()
86-
set(CMAKE_CXX_EXTENSIONS NO)
87-
endif()
80+
set(CMAKE_CXX_EXTENSIONS NO)
8881

8982
if (NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
9083
message(FATAL_ERROR "

0 commit comments

Comments
 (0)