Skip to content

Commit ae96df6

Browse files
committed
Remove USE_LLVM_TOOLS usage
1 parent 646e41f commit ae96df6

File tree

1 file changed

+1
-17
lines changed
  • lldb/packages/Python/lldbsuite/test/builders

1 file changed

+1
-17
lines changed

lldb/packages/Python/lldbsuite/test/builders/builder.py

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -152,10 +152,6 @@ def getToolchainSpec(self, compiler):
152152

153153
cc_dir = cc_path.parent
154154

155-
def getLlvmUtil(util_name):
156-
llvm_tools_dir = os.getenv("LLVM_TOOLS_DIR", cc_dir)
157-
return os.path.join(llvm_tools_dir, util_name + exe_ext)
158-
159155
def getToolchainUtil(util_name):
160156
return cc_dir / (cc_prefix + util_name + cc_ext)
161157

@@ -169,20 +165,8 @@ def getToolchainUtil(util_name):
169165
}
170166
utils = []
171167

172-
# Note: LLVM_AR is currently required by API TestBSDArchives.py tests.
173-
# Assemble a full path to llvm-ar for given LLVM_TOOLS_DIR;
174-
# otherwise assume we have llvm-ar at the same place where is CC specified.
175-
if not os.getenv("LLVM_AR"):
176-
llvm_ar = getLlvmUtil("llvm-ar")
177-
utils.extend(["LLVM_AR=%s" % llvm_ar])
178-
179168
if not lldbplatformutil.platformIsDarwin():
180-
if os.getenv("USE_LLVM_TOOLS"):
181-
# Use the llvm project tool instead of the system defaults.
182-
for var, name in util_names.items():
183-
utils.append("%s=%s" % (var, getLlvmUtil("llvm-" + name)))
184-
utils.extend(["AR=%s" % llvm_ar])
185-
elif cc_type in ["clang", "cc", "gcc"]:
169+
if cc_type in ["clang", "cc", "gcc"]:
186170
util_paths = {}
187171
# Assembly a toolchain side tool cmd based on passed CC.
188172
for var, name in util_names.items():

0 commit comments

Comments
 (0)