Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Downgrade clang version 2 #8418

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/scripts/ti_build/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

# -- code --
@banner("Setup Clang")
def setup_clang(as_compiler=True) -> None:
def setup_clang(as_compiler=True, use_env=True) -> None:
"""
Setup Clang.
"""
Expand Down Expand Up @@ -49,12 +49,12 @@ def setup_clang(as_compiler=True) -> None:
if as_compiler:
cc = os.environ.get("CC")
cxx = os.environ.get("CXX")
if cc:
if cc and use_env:
warn(f"Explicitly specified compiler via environment variable CC={cc}, not configuring clang.")
else:
cmake_args["CMAKE_C_COMPILER"] = clang

if cxx:
if cxx and use_env:
warn(f"Explicitly specified compiler via environment variable CXX={cxx}, not configuring clang++.")
else:
cmake_args["CMAKE_CXX_COMPILER"] = clangpp
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/scripts/ti_build/entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def setup_basic_build_env():
setup_msvc()
else:
# Use Clang on all other platforms
setup_clang()
setup_clang(as_compiler=True, use_env=False)

setup_llvm()
setup_vulkan()
Expand Down
Loading