Use ' ' instead of / / for the regex in split() when preparing the different
lists of flags for exec. ' ' is a magic value that means match all white space, and trim leading / trailing whitespace. Will prevent many spurious arguments to underlying compiler. This commit was SVN r18726.
Этот коммит содержится в:
родитель
c2351d39f1
Коммит
ac337114e6
@ -48,7 +48,7 @@ sub check_env {
|
|||||||
|
|
||||||
sub add_extra_includes {
|
sub add_extra_includes {
|
||||||
my $str = "";
|
my $str = "";
|
||||||
my @includes = split(/ /, $extra_includes);
|
my @includes = split(' ', $extra_includes);
|
||||||
for my $include (@includes) {
|
for my $include (@includes) {
|
||||||
$str .= $include_flag . $include . " ";
|
$str .= $include_flag . $include . " ";
|
||||||
}
|
}
|
||||||
@ -139,17 +139,17 @@ if ($disable_flags == 1 && !($dry_run == 1 && $real_flag == 0)) {
|
|||||||
my @exec_argv = ();
|
my @exec_argv = ();
|
||||||
|
|
||||||
# assemble command
|
# assemble command
|
||||||
push(@exec_argv, split(/ /, $comp));
|
push(@exec_argv, split(' ', $comp));
|
||||||
if ($want_preproc == 1) {
|
if ($want_preproc == 1) {
|
||||||
push(@exec_argv, split(/ /, $preproc_flags));
|
push(@exec_argv, split(' ', $preproc_flags));
|
||||||
}
|
}
|
||||||
if ($want_compile == 1) {
|
if ($want_compile == 1) {
|
||||||
push(@exec_argv, split(/ /, $comp_flags));
|
push(@exec_argv, split(' ', $comp_flags));
|
||||||
}
|
}
|
||||||
push(@exec_argv, @appargs);
|
push(@exec_argv, @appargs);
|
||||||
if ($want_link == 1) {
|
if ($want_link == 1) {
|
||||||
push(@exec_argv, split(/ /, $linker_flags));
|
push(@exec_argv, split(' ', $linker_flags));
|
||||||
push(@exec_argv, split(/ /, $libs));
|
push(@exec_argv, split(' ', $libs));
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($dry_run == 1) {
|
if ($dry_run == 1) {
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user