Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[debuginfo-tests][dexter] Add --builder gcc support for POSIX
Differential Revision: https://reviews.llvm.org/D75339
- Loading branch information
Pierre-vh
committed
Mar 3, 2020
1 parent
d8ad7cc
commit b4b9fa5
Showing
2 changed files
with
25 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
|
||
if test -z "$PATHTOGCC"; then | ||
PATHTOGCC=gcc | ||
fi | ||
|
||
for INDEX in $SOURCE_INDEXES | ||
do | ||
CFLAGS=$(eval echo "\$COMPILER_OPTIONS_$INDEX") | ||
SRCFILE=$(eval echo "\$SOURCE_FILE_$INDEX") | ||
OBJFILE=$(eval echo "\$OBJECT_FILE_$INDEX") | ||
$PATHTOGCC -std=gnu++11 -c $CFLAGS $SRCFILE -o $OBJFILE | ||
done | ||
|
||
$PATHTOGCC $LINKER_OPTIONS $OBJECT_FILES -o $EXECUTABLE_FILE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters