julia: have recipe explicitly use Spack compiler wrapper (#34365)

This commit is contained in:
Glenn Johnson
2022-12-12 12:53:26 -06:00
committed by GitHub
parent 76511ac039
commit fcc2ab8b4b

View File

@@ -274,6 +274,14 @@ def edit(self, spec, prefix):
options.append("USEGCC:={}".format("1" if "%gcc" in spec else "0")) options.append("USEGCC:={}".format("1" if "%gcc" in spec else "0"))
options.append("USECLANG:={}".format("1" if "%clang" in spec else "0")) options.append("USECLANG:={}".format("1" if "%clang" in spec else "0"))
options.extend(
[
"override CC:={0}".format(spack_cc),
"override CXX:={0}".format(spack_cxx),
"override FC:={0}".format(spack_fc),
]
)
# libm or openlibm? # libm or openlibm?
if spec.variants["openlibm"].value: if spec.variants["openlibm"].value:
options.append("USE_SYSTEM_LIBM=0") options.append("USE_SYSTEM_LIBM=0")