diff options
author | Copybara-Service <copybara-worker@google.com> | 2023-05-24 08:04:04 -0700 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2023-05-24 08:04:04 -0700 |
commit | c3e9485bdc0556d2cb454ac106786170e3c95e8a (patch) | |
tree | 95465b09f37fc1101a26b6343fc38059b97981bb | |
parent | 7d7defda388b79e9c8d767c5fa66e4f2cdcb4c12 (diff) | |
parent | 7723d9a1555143c1ccf0d62710a56f6ded4ebc33 (diff) |
Merge pull request #1454 from niranjan-nilakantan:niranjan-nilakantan/issue1450
PiperOrigin-RevId: 534841675
Change-Id: I6fbee6f0fe61d8dd51c9c7d93c3b47684a2f4d9f
-rw-r--r-- | absl/copts/AbseilConfigureCopts.cmake | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/absl/copts/AbseilConfigureCopts.cmake b/absl/copts/AbseilConfigureCopts.cmake index 8209b262..3f737c81 100644 --- a/absl/copts/AbseilConfigureCopts.cmake +++ b/absl/copts/AbseilConfigureCopts.cmake @@ -83,6 +83,16 @@ elseif(CMAKE_CXX_COMPILER_ID MATCHES "Clang") # MATCHES so we get both Clang an set(ABSL_DEFAULT_COPTS "${ABSL_LLVM_FLAGS}") set(ABSL_TEST_COPTS "${ABSL_LLVM_TEST_FLAGS}") endif() +elseif(CMAKE_CXX_COMPILER_ID STREQUAL "IntelLLVM") + # IntelLLVM is similar to Clang, with some additional flags. + if(MSVC) + # clang-cl is half MSVC, half LLVM + set(ABSL_DEFAULT_COPTS "${ABSL_CLANG_CL_FLAGS}") + set(ABSL_TEST_COPTS "${ABSL_CLANG_CL_TEST_FLAGS}") + else() + set(ABSL_DEFAULT_COPTS "${ABSL_LLVM_FLAGS}") + set(ABSL_TEST_COPTS "${ABSL_LLVM_TEST_FLAGS}") + endif() elseif(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") set(ABSL_DEFAULT_COPTS "${ABSL_MSVC_FLAGS}") set(ABSL_TEST_COPTS "${ABSL_MSVC_TEST_FLAGS}") |