Skip to content

Commit 90011ed

Browse files
committed
[wheel-builder] Use absolute CC/CXX to fix use with toolchains_llvm
See jvolkman#104 for context.
1 parent cb3f627 commit 90011ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pycross/private/tools/wheel_builder.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,8 +312,8 @@ def wrap_cc(lang: str, cc_exe: Path, cflags: str, python_exe: Path, bin_dir: Pat
312312

313313

314314
def generate_cc_wrappers(toolchain_vars: Dict[str, Any], python_exe: Path, bin_dir: Path) -> Dict[str, str]:
315-
orig_cc = toolchain_vars["CC"]
316-
orig_cxx = toolchain_vars["CXX"]
315+
orig_cc = os.path.abspath(toolchain_vars["CC"])
316+
orig_cxx = os.path.abspath(toolchain_vars["CXX"])
317317
cflags = toolchain_vars["CFLAGS"]
318318
# Possibly generate wrappers around the CC and CXX executables.
319319
wrapped_cc = wrap_cc("cc", orig_cc, cflags, python_exe, bin_dir)

0 commit comments

Comments
 (0)