Commit 16f213ef authored by Brad King's avatar Brad King 💬 Committed by Kitware Robot
Browse files

Merge topic 'fujitsu-fixup'

cc0d2004 Fujitsu: Fix C90 standard flags
ec78e86c

 FujitsuClang: Use GNU-like command-line
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Merge-request: !5997
parents 06fbbfb1 cc0d2004
......@@ -223,6 +223,8 @@ function(CMAKE_DETERMINE_COMPILER_ID lang flagvar src)
else()
set(CMAKE_${lang}_COMPILER_FRONTEND_VARIANT "GNU")
endif()
elseif("x${CMAKE_${lang}_COMPILER_ID}" STREQUAL "xFujitsuClang")
set(CMAKE_${lang}_COMPILER_FRONTEND_VARIANT "GNU")
else()
set(CMAKE_${lang}_COMPILER_FRONTEND_VARIANT "")
endif()
......
......@@ -4,9 +4,9 @@ include(Compiler/Fujitsu)
__compiler_fujitsu(C)
if(CMAKE_C_COMPILER_VERSION VERSION_GREATER_EQUAL 4)
set(CMAKE_C89_STANDARD_COMPILE_OPTION -std=c89)
set(CMAKE_C89_EXTENSION_COMPILE_OPTION -std=gnu89)
set(CMAKE_C89_STANDARD__HAS_FULL_SUPPORT ON)
set(CMAKE_C90_STANDARD_COMPILE_OPTION -std=c89)
set(CMAKE_C90_EXTENSION_COMPILE_OPTION -std=gnu89)
set(CMAKE_C90_STANDARD__HAS_FULL_SUPPORT ON)
set(CMAKE_C99_STANDARD_COMPILE_OPTION -std=c99)
set(CMAKE_C99_EXTENSION_COMPILE_OPTION -std=gnu99)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment