Skip to content

Commit

Permalink
Parse / replace @GSLFLAGS@ and @XRLFLAGS@ from DEPENDENCY headers
Browse files Browse the repository at this point in the history
  • Loading branch information
willend committed May 19, 2024
1 parent 2daf975 commit 9ba9b2e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tools/Python/mcrun/mccode.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,12 @@ def x_path(file):
# Insert NEXUSFLAGS if instrument/comps request this
flags = re.sub(r'\@NEXUSFLAGS\@', mccode_config.compilation['NEXUSFLAGS'], flags)

# Insert GSLFLAGS if instrument/comps request this
flags = re.sub(r'\@GSLFLAGS\@', mccode_config.compilation['GSLFLAGS'], flags)

# Insert XRLFLAGS if instrument/comps request this (McXtrace only)
flags = re.sub(r'\@XRLFLAGS\@', mccode_config.compilation['XRLFLAGS'], flags)

# Support for legacy @MCCODE_LIB@ symbol, with Unix-slashes
flags = re.sub(r'\@MCCODE_LIB\@', re.sub(r'\\', '/', MCCODE_LIB), flags)

Expand Down

0 comments on commit 9ba9b2e

Please sign in to comment.