Skip to content

Commit 0dc7317

Browse files
committed
Add support for IntelLLVM compiler
1 parent 457285c commit 0dc7317

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

tools/cmake/bazel_to_cmake/platforms.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"AppleClang": "clang",
3131
"Clang": "clang",
3232
"MSVC": "msvc-cl",
33+
"IntelLLVM": "icpx",
3334
}
3435
"""Maps `CMAKE_CXX_COMPILER_ID` -> "@bazel_tools//tools/cpp:compiler" flag."""
3536

@@ -143,3 +144,7 @@ def add_platform_constraints(workspace: Workspace) -> None:
143144
# Bazel defines this by default. In practice, heavy use of C++ templates
144145
# can cause compilation to fail without this flag.
145146
workspace.copts.append("/bigobj")
147+
148+
if bazel_compiler == "IntelLLVM":
149+
# Add the flags from the CMake command
150+
workspace.copts.extend(["-mssse3", "-mpclmul"])

0 commit comments

Comments
 (0)