neuron: fix issue with assignment operator during build (#22278)

This commit is contained in:
Pramod Kumbhar
2021-03-20 13:31:23 +01:00
committed by GitHub
parent a4fbaf2f89
commit 222666e400

View File

@@ -103,7 +103,12 @@ def filter_compilers(self):
nrnmech_makefile = join_path(self.prefix, nrnmech_makefile = join_path(self.prefix,
"./bin/nrnmech_makefile") "./bin/nrnmech_makefile")
assign_operator = "?=" # assign_operator is changed to fix wheel support
if self.spec.satisfies("@:7.99"):
assign_operator = "?="
else:
assign_operator = "="
filter_file("CC {0} {1}".format(assign_operator, env["CC"]), filter_file("CC {0} {1}".format(assign_operator, env["CC"]),
"CC = {0}".format(cc_compiler), "CC = {0}".format(cc_compiler),
nrnmech_makefile, nrnmech_makefile,