Harald Klimach avatar Harald Klimach committed 43060bf

Cleanup general DEFINES in waf environment
Only use them in the appropiate lib_store.

Comments (0)

Files changed (1)

     conf.env['FCSTLIB_MARKER'] = ''
     conf.env['FCSHLIB_MARKER'] = ''
-    conf.vars = ['FC_NAME', 'FC_VERSION', 'FCFLAGS'] # Recompilation if any of these change
+    # Recompilation if any of these change:
+    conf.vars = ['FC_NAME', 'FC_VERSION', 'FCFLAGS']
     Useful to restrict parent recursions to just this part
     of the configuration.
+    # Do not change the DEFINES themselves, use the lib_store instead
+    tmpDEF = conf.env.DEFINES
                   header_name=['stdlib.h', 'unistd.h'],
-                  define_name='HASLUA',
                   uselib_store='MKSTEMP', mandatory=False)
-                  define_name='HASLUA',
                   uselib_store='POPEN', mandatory=False)
+    # Cleanup the DEFINES again
+    conf.env.DEFINES = tmpDEF
 def build(bld):
     core_sources = ['external/lua-5.2.0/src/lapi.c',
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.