Skip to content

Commit

Permalink
Support gcc loaded via module (#118)
Browse files Browse the repository at this point in the history
  • Loading branch information
Silv3S authored Nov 14, 2023
1 parent 3fd4b52 commit 100a05e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion third_party/gpus/sycl_configure.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def find_sycl_include_path(repository_ctx, sycl_config):
fail("Cannot find DPC++ compiler, please correct your path")
else:
icpx_extra = "-fsycl"
gcc_path = repository_ctx.path("/usr/bin/gcc")
gcc_path = repository_ctx.which("gcc")
gcc_install_dir = repository_ctx.execute([gcc_path, "-print-libgcc-file-name"])
gcc_install_dir_opt = "--gcc-install-dir=" + str(repository_ctx.path(gcc_install_dir.stdout.strip()).dirname)
cmd_out = repository_ctx.execute([bin_path, icpx_extra, gcc_install_dir_opt, "-xc++", "-E", "-v", "/dev/null", "-o", "/dev/null"])
Expand Down

0 comments on commit 100a05e

Please sign in to comment.