Commit b40c5f2d authored by André Hentschel's avatar André Hentschel Committed by Alexandre Julliard

winemaker: Respect more spaces when splitting the options.

parent 65cfa70e
...@@ -604,7 +604,7 @@ sub source_scan_project_file($$$) ...@@ -604,7 +604,7 @@ sub source_scan_project_file($$$)
next; next;
} elsif (/^# ADD CPP(.*)/ && $found_cfg==1) { } elsif (/^# ADD CPP(.*)/ && $found_cfg==1) {
$prj_target_cflags=$1; $prj_target_cflags=$1;
@prj_target_options=split(" /", $prj_target_cflags); @prj_target_options=split(/\s+\//, $prj_target_cflags);
$prj_target_cflags=""; $prj_target_cflags="";
foreach ( @prj_target_options ) { foreach ( @prj_target_options ) {
if ($_ eq "") { if ($_ eq "") {
...@@ -736,7 +736,7 @@ sub source_scan_project_file($$$) ...@@ -736,7 +736,7 @@ sub source_scan_project_file($$$)
next; next;
} elsif (/^# ADD LINK32(.*)/ && $found_cfg==1) { } elsif (/^# ADD LINK32(.*)/ && $found_cfg==1) {
$prj_target_ldflags=$1; $prj_target_ldflags=$1;
@prj_target_options=split(" /", $prj_target_ldflags); @prj_target_options=split(/\s+\//, $prj_target_ldflags);
$prj_target_ldflags=""; $prj_target_ldflags="";
$prj_target_libs=$prj_target_options[0]; $prj_target_libs=$prj_target_options[0];
$prj_target_libs=~s/\\/\//g; $prj_target_libs=~s/\\/\//g;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment