Skip to content

Commit

Permalink
Merge pull request #84 from jlab/catch_nogcc
Browse files Browse the repository at this point in the history
try catch mechanism to leave ARCHTRIPLE not undefined
  • Loading branch information
sjanssen2 authored Jul 15, 2024
2 parents 9aaa173 + b6b2610 commit 0ee5347
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Misc/Applications/lib/foldGrammars/Settings.pm
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,13 @@ our $MODE_ACM = 'acm'; #single and thus default mode for ACMs

our $MODE_LOCOMOTIF = 'locomotif'; #single and thus default mode for the perl wrapper for locomotif, to present matcher results with my standard format

our $ARCHTRIPLE = qx($BINARIES{gcc} -dumpmachine); chomp $ARCHTRIPLE;
# we might not have a compiler available, e.g. in bioconda builds. In these situations, default to "undefGCC" for ARCHTRIPLE,
# which is basically pointing to the tmp directories of gapc compile products. These should have been moved
# to PREFIX/bin via make install, anyway.
our $ARCHTRIPLE = 'undefGCC';
if (qx(which $BINARIES{gcc}) ne '') {
$ARCHTRIPLE = qx($BINARIES{gcc} -dumpmachine); chomp $ARCHTRIPLE;
}
our $RNAPARAM1999 = $Settings::bgapDir.$fileseparater.'share/gapc/librna/rna_turner1999.par';
our $RNAPARAM2004 = $Settings::bgapDir.$fileseparater.'share/gapc/librna/rna_turner2004.par';

Expand Down

0 comments on commit 0ee5347

Please sign in to comment.