Skip to content

Commit 117e51d

Browse files
committed
[flang][cmake] Don't pass -fno-strict-aliasing for GCC either
This is the same as 4ed10db with the same rationale, but for Flang, I strongly suspect it was just pulled in from Clang, see flang-compiler/f18#6 (comment).
1 parent a65e0ed commit 117e51d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flang/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ endif()
421421
if (LLVM_COMPILER_IS_GCC_COMPATIBLE)
422422

423423
if (NOT "${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
424-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-strict-aliasing -fno-semantic-interposition")
424+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-semantic-interposition")
425425
else()
426426
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unused-command-line-argument -Wstring-conversion \
427427
-Wcovered-switch-default")

0 commit comments

Comments
 (0)