summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/neuron/package.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/neuron/package.py b/var/spack/repos/builtin/packages/neuron/package.py
index eddc32032c..88bdca7647 100644
--- a/var/spack/repos/builtin/packages/neuron/package.py
+++ b/var/spack/repos/builtin/packages/neuron/package.py
@@ -103,7 +103,12 @@ class Neuron(CMakePackage):
nrnmech_makefile = join_path(self.prefix,
"./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"]),
"CC = {0}".format(cc_compiler),
nrnmech_makefile,