We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 457285c commit 0dc7317Copy full SHA for 0dc7317
1 file changed
tools/cmake/bazel_to_cmake/platforms.py
@@ -30,6 +30,7 @@
30
"AppleClang": "clang",
31
"Clang": "clang",
32
"MSVC": "msvc-cl",
33
+ "IntelLLVM": "icpx",
34
}
35
"""Maps `CMAKE_CXX_COMPILER_ID` -> "@bazel_tools//tools/cpp:compiler" flag."""
36
@@ -143,3 +144,7 @@ def add_platform_constraints(workspace: Workspace) -> None:
143
144
# Bazel defines this by default. In practice, heavy use of C++ templates
145
# can cause compilation to fail without this flag.
146
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