Skip to content

Commit 639f636

Browse files
authored
Merge branch 'main' into srnitin/test-scripts-workflows
2 parents b9ccb7f + 6f9505d commit 639f636

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

build/build.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,10 @@ async def main():
454454
wheel_build_command_base.append(f"--action_env=CLANG_COMPILER_PATH=\"{clang_path}\"")
455455
wheel_build_command_base.append(f"--repo_env=CC=\"{clang_path}\"")
456456
wheel_build_command_base.append(f"--repo_env=BAZEL_COMPILER=\"{clang_path}\"")
457-
wheel_build_command_base.append("--config=clang")
457+
if clang_major_version >= 16:
458+
# Enable clang settings that needed for the build to work with newer
459+
# versions of Clang.
460+
wheel_build_command_base.append("--config=clang")
458461
else:
459462
logging.debug("Use Clang: False")
460463

0 commit comments

Comments
 (0)