mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-15 07:39:31 +00:00
Add a gross "--use-current-dir-as-prefix" option as a temporary workaround
for the "build with one prefix and move the installed files to another dir" problem. llvm-svn: 28654
This commit is contained in:
parent
0f2c3368eb
commit
960386a1cf
@ -27,6 +27,9 @@ my $CXXFLAGS = q{@LLVM_CXXFLAGS@};
|
||||
my $LDFLAGS = q{@LLVM_LDFLAGS@};
|
||||
#---- end Makefile values ----
|
||||
|
||||
# Convert the current executable name into its directory (e.g. ".").
|
||||
my ($PARTIALDIR) = ($0 =~ /^(.*)\/.*$/);
|
||||
|
||||
sub usage;
|
||||
sub fix_library_names (@);
|
||||
sub expand_dependecies (@);
|
||||
@ -43,6 +46,11 @@ foreach my $arg (@ARGV) {
|
||||
if ($arg =~ /^-/) {
|
||||
if ($arg eq "--version") {
|
||||
$has_opt = 1; print "$VERSION\n";
|
||||
} elsif ($arg eq "--use-current-dir-as-prefix") {
|
||||
# Convert the scripts executable dir into a full absolute directory.
|
||||
my $ABSDIR = `cd $PARTIALDIR/..; pwd`;
|
||||
chomp($ABSDIR);
|
||||
$PREFIX = $ABSDIR;
|
||||
} elsif ($arg eq "--prefix") {
|
||||
$has_opt = 1; print "$PREFIX\n";
|
||||
} elsif ($arg eq "--bindir") {
|
||||
|
Loading…
Reference in New Issue
Block a user