diff options
author | William R. Dieter <william.r.dieter@intel.com> | 2021-01-16 00:20:27 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-01-28 14:07:01 (GMT) |
commit | d83df2af57d79ec2a38ce03b5ca08f21e137b717 (patch) | |
tree | 93b5d6746e1f6866b6a9efd38a9a51c08eb6e884 /Tests/Preprocess/CMakeLists.txt | |
parent | 7de61526a01305b058dad99a11b81e2d3fe18ed6 (diff) | |
download | CMake-d83df2af57d79ec2a38ce03b5ca08f21e137b717.zip CMake-d83df2af57d79ec2a38ce03b5ca08f21e137b717.tar.gz CMake-d83df2af57d79ec2a38ce03b5ca08f21e137b717.tar.bz2 |
Tests: Update Preprocess test for IntelLLVM
Work around an icx bug in command line handling of preprocessor macros.
A `\\\"` string in a macro passed to icx on the command line is not
properly parsed in compiler versions 2021.1.0 and earlier. This problem
is expected to be fixed, though a target release has no been set yet.
Signed-off-by: William R. Dieter <william.r.dieter@intel.com>
Diffstat (limited to 'Tests/Preprocess/CMakeLists.txt')
-rw-r--r-- | Tests/Preprocess/CMakeLists.txt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Tests/Preprocess/CMakeLists.txt b/Tests/Preprocess/CMakeLists.txt index bce1b3f..bf2af64 100644 --- a/Tests/Preprocess/CMakeLists.txt +++ b/Tests/Preprocess/CMakeLists.txt @@ -147,8 +147,13 @@ endif() # - NMake is okay with just \\\" # - The XL compiler does not re-escape \\\" when launching an # internal tool to do preprocessing . +# - The IntelLLVM C and C++ compiler drivers do not re-escape the \\\" when +# launching the underlying compiler. FIXME: this bug is expected to be fixed +# in a future release. if((PP_NMAKE OR PP_UMAKE) AND - NOT CMAKE_C_COMPILER_ID STREQUAL "XL") + NOT CMAKE_C_COMPILER_ID STREQUAL "XL" AND + NOT CMAKE_C_COMPILER_ID STREQUAL "IntelLLVM" AND + NOT CMAKE_CXX_COMPILER_ID STREQUAL "IntelLLVM") string(APPEND STRING_EXTRA "\\\"") endif() |