Skip to content

Commit

Permalink
Purge underscore defs from stanza reading
Browse files Browse the repository at this point in the history
  • Loading branch information
islas committed Aug 6, 2024
1 parent 812acda commit b1a8fa1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion arch/configure_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,11 +160,14 @@ def sanitize( self ) :
# # Now deref
self.dereference( "FCBASEOPTS" )

definesToRemove = [ "-DUNDERSCORE", "-DNOUNDERSCORE" ]

# Remove rogue compile commands that should *NOT* even be here
for keyToSan in self.kvPairs_.keys() :
self.kvPairs_[ keyToSan ] = configureRepl.sub( r"\1\2", self.kvPairs_[ keyToSan ] ).strip()
self.kvPairs_[ keyToSan ] = compileObject.sub( r"\1\2", self.kvPairs_[ keyToSan ] ).strip()

for cppDef in definesToRemove :
self.kvPairs_[ keyToSan ] = self.kvPairs_[ keyToSan ].replace( cppDef, "" )

# Now fix certain ones that are mixing programs with flags all mashed into one option
self.splitIntoFieldAndFlags( "SFC" )
Expand Down

0 comments on commit b1a8fa1

Please sign in to comment.