From 9b75fce89e250ce8ff1dd6af8081fd8a71135a83 Mon Sep 17 00:00:00 2001 From: Jade Abraham Date: Tue, 23 Jul 2024 13:32:25 -0700 Subject: [PATCH] explicitly set the host cc Signed-off-by: Jade Abraham --- tools/chapel-py/setup.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/chapel-py/setup.py b/tools/chapel-py/setup.py index 3bcb8091aec2..0f3dd9fea0b9 100644 --- a/tools/chapel-py/setup.py +++ b/tools/chapel-py/setup.py @@ -42,6 +42,8 @@ have_llvm = str(chpl_variables.get("CHPL_LLVM")) llvm_config = str(chpl_variables.get("CHPL_LLVM_CONFIG")) +host_cc = str(chpl_variables.get("CHPL_HOST_CC")) +host_cxx = str(chpl_variables.get("CHPL_HOST_CXX")) host_bin_subdir = str(chpl_variables.get("CHPL_HOST_BIN_SUBDIR")) chpl_lib_path = os.path.join(chpl_home, "lib", "compiler", host_bin_subdir) @@ -67,6 +69,8 @@ chpl_lib_path, ] +os.environ["CC"] = host_cc +os.environ["CXX"] = host_cxx setup( name="chapel", version="0.1",