Skip to content

Commit

Permalink
[wheel-builder] Use absolute CC/CXX to fix use with toolchains_llvm
Browse files Browse the repository at this point in the history
See jvolkman#104 for context.
  • Loading branch information
ddeville committed Sep 26, 2024
1 parent cb3f627 commit 90011ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pycross/private/tools/wheel_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,8 +312,8 @@ def wrap_cc(lang: str, cc_exe: Path, cflags: str, python_exe: Path, bin_dir: Pat


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

0 comments on commit 90011ed

Please sign in to comment.