Skip to content

Commit

Permalink
Merge pull request #95 from rlcee/tfcl_240125
Browse files Browse the repository at this point in the history
new trigger fhicl
  • Loading branch information
rlcee authored Jan 25, 2024
2 parents 1223f1e + 2b68b3f commit ca29746
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
9 changes: 6 additions & 3 deletions bin/museSetup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -581,13 +581,16 @@ do
export ${REPOUPPER}_INC=$BDIR

# add package-generated fcl (trigger) and data (gdml) paths
# assuming only Offline generates these
if [ "$REPO" == "Offline" ]; then
TEMP=$BDIR/build/$MUSE_STUB
# assuming only certain repos generate these
TEMP=$BDIR/build/$MUSE_STUB
if [[ "$REPO" == "Offline" || "$REPO" == "mu2e_trig_config" ]]; then
export FHICL_FILE_PATH=$( mdropit $FHICL_FILE_PATH $TEMP )
fi
if [ "$REPO" == "Offline" ]; then
export MU2E_SEARCH_PATH=$( mdropit $MU2E_SEARCH_PATH $TEMP )
fi


# libraries built in each package
export LD_LIBRARY_PATH=$( mdropit $LD_LIBRARY_PATH $BUILD/lib )
export CET_PLUGIN_PATH=$( mdropit $CET_PLUGIN_PATH $BUILD/lib )
Expand Down
4 changes: 2 additions & 2 deletions python/SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ env = Environment( CPPPATH = sch.cppPath(mu2eOpts), # $ART_INC ...
SHLINKCOMSTR= linkcomstr
)

# compilation_db, starting in version 4
if mu2eCBD and mu2eOpts['sconsv'][0]>='4':
# make compile_commands file used by code analysis tools
if mu2eCBD :
cstr = "Wrote "+mu2eOpts['workDir']+'/'+mu2eOpts['buildBase'] \
+"/compile_commands.json"
env.Tool('compilation_db', COMPILATIONDB_COMSTR=cstr)
Expand Down
3 changes: 0 additions & 3 deletions python/sconstruct_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
def mu2eEnvironment():
mu2eOpts = {}

# version, like 4_2_0
mu2eOpts['sconsv'] = os.environ['SETUP_SCONS'].split()[1].replace('v','')

# the directory that includes local repos and 'build'
workDir = os.environ['MUSE_WORK_DIR']

Expand Down

0 comments on commit ca29746

Please sign in to comment.