We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b814f53 commit ae0c6ccCopy full SHA for ae0c6cc
scripts/gen_coverage.py
@@ -196,7 +196,13 @@ def find_objects():
196
args.compiler_root = None
197
icx_path = subprocess.check_output(["which", "icx"])
198
bin_dir = os.path.dirname(icx_path)
199
- args.bin_llvm = os.path.join(bin_dir.decode("utf-8"), "compiler")
+ compiler_dir = os.path.join(bin_dir.decode("utf-8"), "compiler")
200
+ if os.path.exists(compiler_dir):
201
+ args.bin_llvm = os.path.join(bin_dir.decode("utf-8"), "compiler")
202
+ else:
203
+ bin_dir = os.path.dirname(bin_dir)
204
+ args.bin_llvm = os.path.join(bin_dir.decode("utf-8"), "bin-llvm")
205
+ assert os.path.exists(args.bin_llvm)
206
else:
207
args_to_validate = [
208
"c_compiler",
0 commit comments