mirror of
https://github.com/Kitware/CMake.git
synced 2026-03-16 07:28:23 -05:00
XL: Fix the use of the -qhalt flag for varying OSs
The valid settings to pass to the IBM XL compiler for the -qhalt flag vary widely by language and platform. Based on existing documentation, the following table shows which error levels are valid to pass to -qhalt= since -qhalt=e is not always available. OS | xlc | xlC | xlf | ---------|-------|------------------ AIX | iwes | iw s | ilwesu | BlueGene | iwes | iwes | ilwesu | OS X | iwesu | iwesu | ilwesu | Linux | w | w | ilwesu |
This commit is contained in:
@@ -4,5 +4,4 @@ string(APPEND CMAKE_C_FLAGS_RELEASE_INIT " -DNDEBUG")
|
|||||||
string(APPEND CMAKE_C_FLAGS_MINSIZEREL_INIT " -DNDEBUG")
|
string(APPEND CMAKE_C_FLAGS_MINSIZEREL_INIT " -DNDEBUG")
|
||||||
|
|
||||||
# -qthreaded = Ensures that all optimizations will be thread-safe
|
# -qthreaded = Ensures that all optimizations will be thread-safe
|
||||||
# -qhalt=e = Halt on error messages (rather than just severe errors)
|
string(APPEND CMAKE_C_FLAGS_INIT " -qthreaded")
|
||||||
string(APPEND CMAKE_C_FLAGS_INIT " -qthreaded -qhalt=e")
|
|
||||||
|
|||||||
@@ -4,8 +4,7 @@ string(APPEND CMAKE_CXX_FLAGS_RELEASE_INIT " -DNDEBUG")
|
|||||||
string(APPEND CMAKE_CXX_FLAGS_MINSIZEREL_INIT " -DNDEBUG")
|
string(APPEND CMAKE_CXX_FLAGS_MINSIZEREL_INIT " -DNDEBUG")
|
||||||
|
|
||||||
# -qthreaded = Ensures that all optimizations will be thread-safe
|
# -qthreaded = Ensures that all optimizations will be thread-safe
|
||||||
# -qhalt=e = Halt on error messages (rather than just severe errors)
|
string(APPEND CMAKE_CXX_FLAGS_INIT " -qthreaded")
|
||||||
string(APPEND CMAKE_CXX_FLAGS_INIT " -qthreaded -qhalt=e")
|
|
||||||
|
|
||||||
set(CMAKE_CXX_COMPILE_OBJECT
|
set(CMAKE_CXX_COMPILE_OBJECT
|
||||||
"<CMAKE_CXX_COMPILER> -+ <DEFINES> <INCLUDES> <FLAGS> -o <OBJECT> -c <SOURCE>")
|
"<CMAKE_CXX_COMPILER> -+ <DEFINES> <INCLUDES> <FLAGS> -o <OBJECT> -c <SOURCE>")
|
||||||
|
|||||||
@@ -1,2 +1,5 @@
|
|||||||
include(Platform/AIX-XL)
|
include(Platform/AIX-XL)
|
||||||
__aix_compiler_xl(C)
|
__aix_compiler_xl(C)
|
||||||
|
|
||||||
|
# -qhalt=e = Halt on error messages (rather than just severe errors)
|
||||||
|
string(APPEND CMAKE_C_FLAGS_INIT " -qhalt=e")
|
||||||
|
|||||||
@@ -1,2 +1,5 @@
|
|||||||
include(Platform/AIX-XL)
|
include(Platform/AIX-XL)
|
||||||
__aix_compiler_xl(CXX)
|
__aix_compiler_xl(CXX)
|
||||||
|
|
||||||
|
# -qhalt=s = Halt on severe error messages
|
||||||
|
string(APPEND CMAKE_CXX_FLAGS_INIT " -qhalt=s")
|
||||||
|
|||||||
@@ -3,3 +3,6 @@
|
|||||||
|
|
||||||
|
|
||||||
__BlueGeneP_set_dynamic_flags(XL C)
|
__BlueGeneP_set_dynamic_flags(XL C)
|
||||||
|
|
||||||
|
# -qhalt=e = Halt on error messages (rather than just severe errors)
|
||||||
|
string(APPEND CMAKE_C_FLAGS_INIT " -qhalt=e")
|
||||||
|
|||||||
@@ -3,3 +3,6 @@
|
|||||||
|
|
||||||
|
|
||||||
__BlueGeneP_set_dynamic_flags(XL CXX)
|
__BlueGeneP_set_dynamic_flags(XL CXX)
|
||||||
|
|
||||||
|
# -qhalt=s = Halt on severe error messages
|
||||||
|
string(APPEND CMAKE_CXX_FLAGS_INIT " -qhalt=s")
|
||||||
|
|||||||
@@ -3,3 +3,6 @@
|
|||||||
|
|
||||||
|
|
||||||
__BlueGeneP_set_static_flags(XL C)
|
__BlueGeneP_set_static_flags(XL C)
|
||||||
|
|
||||||
|
# -qhalt=e = Halt on error messages (rather than just severe errors)
|
||||||
|
string(APPEND CMAKE_C_FLAGS_INIT " -qhalt=e")
|
||||||
|
|||||||
@@ -3,3 +3,6 @@
|
|||||||
|
|
||||||
|
|
||||||
__BlueGeneP_set_static_flags(XL CXX)
|
__BlueGeneP_set_static_flags(XL CXX)
|
||||||
|
|
||||||
|
# -qhalt=s = Halt on severe error messages
|
||||||
|
string(APPEND CMAKE_CXX_FLAGS_INIT " -qhalt=s")
|
||||||
|
|||||||
@@ -3,3 +3,6 @@
|
|||||||
|
|
||||||
|
|
||||||
__BlueGeneQ_setup_dynamic(XL C)
|
__BlueGeneQ_setup_dynamic(XL C)
|
||||||
|
|
||||||
|
# -qhalt=e = Halt on error messages (rather than just severe errors)
|
||||||
|
string(APPEND CMAKE_C_FLAGS_INIT " -qhalt=e")
|
||||||
|
|||||||
@@ -3,3 +3,6 @@
|
|||||||
|
|
||||||
|
|
||||||
__BlueGeneQ_setup_dynamic(XL CXX)
|
__BlueGeneQ_setup_dynamic(XL CXX)
|
||||||
|
|
||||||
|
# -qhalt=s = Halt on severe error messages
|
||||||
|
string(APPEND CMAKE_CXX_FLAGS_INIT " -qhalt=s")
|
||||||
|
|||||||
@@ -3,3 +3,6 @@
|
|||||||
|
|
||||||
|
|
||||||
__BlueGeneQ_setup_static(XL C)
|
__BlueGeneQ_setup_static(XL C)
|
||||||
|
|
||||||
|
# -qhalt=e = Halt on error messages (rather than just severe errors)
|
||||||
|
string(APPEND CMAKE_C_FLAGS_INIT " -qhalt=e")
|
||||||
|
|||||||
@@ -3,3 +3,6 @@
|
|||||||
|
|
||||||
|
|
||||||
__BlueGeneQ_setup_static(XL CXX)
|
__BlueGeneQ_setup_static(XL CXX)
|
||||||
|
|
||||||
|
# -qhalt=s = Halt on severe error messages
|
||||||
|
string(APPEND CMAKE_CXX_FLAGS_INIT " -qhalt=s")
|
||||||
|
|||||||
@@ -3,3 +3,6 @@ set(CMAKE_SHARED_MODULE_CREATE_C_FLAGS "-bundle")
|
|||||||
|
|
||||||
# Enable shared library versioning.
|
# Enable shared library versioning.
|
||||||
set(CMAKE_SHARED_LIBRARY_SONAME_C_FLAG "-Wl,-install_name")
|
set(CMAKE_SHARED_LIBRARY_SONAME_C_FLAG "-Wl,-install_name")
|
||||||
|
|
||||||
|
# -qhalt=e = Halt on error messages (rather than just severe errors)
|
||||||
|
string(APPEND CMAKE_C_FLAGS_INIT " -qhalt=e")
|
||||||
|
|||||||
@@ -3,3 +3,6 @@ set(CMAKE_SHARED_MODULE_CREATE_CXX_FLAGS "-bundle")
|
|||||||
|
|
||||||
# Enable shared library versioning.
|
# Enable shared library versioning.
|
||||||
set(CMAKE_SHARED_LIBRARY_SONAME_CXX_FLAG "-Wl,-install_name")
|
set(CMAKE_SHARED_LIBRARY_SONAME_CXX_FLAG "-Wl,-install_name")
|
||||||
|
|
||||||
|
# -qhalt=e = Halt on error messages (rather than just severe errors)
|
||||||
|
string(APPEND CMAKE_C_FLAGS_INIT " -qhalt=e")
|
||||||
|
|||||||
Reference in New Issue
Block a user