Skip to content

Commit d8ab058

Browse files
committed
Use clang absolute path.
1 parent b59e767 commit d8ab058

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

infra/ansible/config/env.yaml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,8 @@
22
# They'll be accessible for all processes on the host, also in the development image.
33
release_env:
44
common:
5-
# Force GCC because clang/bazel has issues.
6-
CC: gcc-10
7-
CXX: g++-10
8-
# CC: "clang-{{ clang_version }}"
9-
# CXX: "clang++-{{ clang_version }}"
5+
CC: "/usr/lib/llvm-{{ clang_version }}/bin/clang"
6+
CXX: "/usr/lib/llvm-{{ clang_version }}/bin/clang"
107
LD_LIBRARY_PATH: "$LD_LIBRARY_PATH:/usr/local/lib"
118

129
tpu:
@@ -24,8 +21,8 @@ build_env:
2421
# Set explicitly to 0 as setup.py defaults this flag to true if unset.
2522
BUILD_CPP_TESTS: "{{ build_cpp_tests }}"
2623
# Force GCC because clang/bazel has issues.
27-
CC: gcc-10
28-
CXX: g++-10
24+
CC: "/usr/lib/llvm-{{ clang_version }}/bin/clang"
25+
CXX: "/usr/lib/llvm-{{ clang_version }}/bin/clang"
2926
PYTORCH_BUILD_NUMBER: 1
3027
TORCH_XLA_VERSION: "{{ package_version }}"
3128
PYTORCH_BUILD_VERSION: "{{ package_version }}"

0 commit comments

Comments
 (0)