Fix surprising behaviour of NO_AFFINITY=0
authorMartin Kroeker <martin@ruby.chemie.uni-freiburg.de>
Sun, 7 Jul 2019 14:04:45 +0000 (16:04 +0200)
committerGitHub <noreply@github.com>
Sun, 7 Jul 2019 14:04:45 +0000 (16:04 +0200)
Makefile.system

index 16791bc..09a648e 100644 (file)
@@ -1124,8 +1124,12 @@ endif
 endif
 
 ifdef NO_AFFINITY
+ifeq ($(NO_AFFINITY), 0)
+override undefine NO_AFFINITY
+else
 CCOMMON_OPT    += -DNO_AFFINITY
 endif
+endif
 
 ifdef FUNCTION_PROFILE
 CCOMMON_OPT    += -DFUNCTION_PROFILE