File tree Expand file tree Collapse file tree
var/spack/repos/builtin/packages Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33#
44# SPDX-License-Identifier: (Apache-2.0 OR MIT)
55
6+ from platform import machine
7+
68from spack .package import *
79
810
@@ -74,7 +76,7 @@ def cmake_args(self):
7476 args .append ("-Denable_openmp=%s" % ("ON" if "+openmp" in spec else "OFF" ))
7577 if "%cce" in spec :
7678 # Assume the proper Cray CCE module (cce) is loaded:
77- craylibs_path = env ["CRAYLIBS_" + env [ "MACHTYPE" ]. capitalize ()]
79+ craylibs_path = env ["CRAYLIBS_" + machine (). upper ()]
7880 env .setdefault ("LDFLAGS" , "" )
7981 env ["LDFLAGS" ] += " -Wl,-rpath," + craylibs_path
8082
Original file line number Diff line number Diff line change 33#
44# SPDX-License-Identifier: (Apache-2.0 OR MIT)
55
6+ from platform import machine
7+
68from spack .package import *
79from spack .util .environment import set_env
810
@@ -173,7 +175,7 @@ def cmake_args(self):
173175
174176 if "%cce" in spec :
175177 # Assume the proper Cray CCE module (cce) is loaded:
176- craylibs_path = env ["CRAYLIBS_" + env [ "MACHTYPE" ]. capitalize ()]
178+ craylibs_path = env ["CRAYLIBS_" + machine (). upper ()]
177179 env .setdefault ("LDFLAGS" , "" )
178180 env ["LDFLAGS" ] += " -Wl,-rpath," + craylibs_path
179181
You can’t perform that action at this time.
0 commit comments