mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-27 16:17:17 +00:00
Add -extraflags FLAGS to pass extra compilation options.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28707 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -43,6 +43,8 @@
|
|||||||
# override the default.
|
# override the default.
|
||||||
# -ldflags Next argument specifies that linker options that override
|
# -ldflags Next argument specifies that linker options that override
|
||||||
# the default.
|
# the default.
|
||||||
|
# -extraflags Next argument specifies extra options that are passed to
|
||||||
|
# compile the tests.
|
||||||
#
|
#
|
||||||
# ---------------- Options to configure llvm-test ----------------------------
|
# ---------------- Options to configure llvm-test ----------------------------
|
||||||
# -spec2000path Path to the benchspec directory in the SPEC 2000 distro
|
# -spec2000path Path to the benchspec directory in the SPEC 2000 distro
|
||||||
@@ -312,7 +314,7 @@ while (scalar(@ARGV) and ($_ = $ARGV[0], /^[-+]/)) {
|
|||||||
$CONFIGUREARGS .= " --with-f2c=$ARGV[0]"; shift; next;
|
$CONFIGUREARGS .= " --with-f2c=$ARGV[0]"; shift; next;
|
||||||
}
|
}
|
||||||
if (/^-with-externals/) {
|
if (/^-with-externals/) {
|
||||||
$CONFIGUREARGS .= "--with-externals=$ARGV[0]"; shift; next
|
$CONFIGUREARGS .= " --with-externals=$ARGV[0]"; shift; next
|
||||||
}
|
}
|
||||||
if (/^-gnuplotscript$/) { $PlotScriptFilename = $ARGV[0]; shift; next; }
|
if (/^-gnuplotscript$/) { $PlotScriptFilename = $ARGV[0]; shift; next; }
|
||||||
if (/^-templatefile$/) { $Template = $ARGV[0]; shift; next; }
|
if (/^-templatefile$/) { $Template = $ARGV[0]; shift; next; }
|
||||||
@@ -332,6 +334,9 @@ while (scalar(@ARGV) and ($_ = $ARGV[0], /^[-+]/)) {
|
|||||||
if (/^-ldflags/) {
|
if (/^-ldflags/) {
|
||||||
$MAKEOPTS = "$MAKEOPTS LD.Flags=\'$ARGV[0]\'"; shift; next;
|
$MAKEOPTS = "$MAKEOPTS LD.Flags=\'$ARGV[0]\'"; shift; next;
|
||||||
}
|
}
|
||||||
|
if (/^-extraflags/) {
|
||||||
|
$PROGTESTOPTS .= " EXTRA_FLAGS=\'$ARGV[0]\'"; shift; next;
|
||||||
|
}
|
||||||
if (/^-noexternals$/) { $NOEXTERNALS = 1; next; }
|
if (/^-noexternals$/) { $NOEXTERNALS = 1; next; }
|
||||||
if (/^-nodejagnu$/) { $NODEJAGNU = 1; next; }
|
if (/^-nodejagnu$/) { $NODEJAGNU = 1; next; }
|
||||||
if (/^-spec2000path$/) {
|
if (/^-spec2000path$/) {
|
||||||
|
Reference in New Issue
Block a user