Skip to content

Commit 497fbd0

Browse files
authored
[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 9633f87 commit 497fbd0

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
@@ -76,14 +76,7 @@ endif()
7676

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

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

0 commit comments

Comments
 (0)