File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -726,7 +726,7 @@ void HipBinAmd::executeHipCCCmd(vector<string> argv) {
726
726
// Important to have all of '-Xlinker' in the set of unquoted characters.
727
727
// Windows needs different quoting, ignore for now
728
728
if (os != windows && escapeArg) {
729
- regex reg (" [^-a-zA-Z0-9_=+,.\/]" );
729
+ regex reg (" [^-a-zA-Z0-9_=+,.\\ /]" );
730
730
arg = regex_replace (arg, reg, " \\ $&" );
731
731
}
732
732
if (!swallowArg)
Original file line number Diff line number Diff line change @@ -538,7 +538,7 @@ void HipBinNvidia::executeHipCCCmd(vector<string> argv) {
538
538
}
539
539
// Windows needs different quoting, ignore for now
540
540
if (os != windows && escapeArg) {
541
- regex reg (" [^-a-zA-Z0-9_=+,.\/]" );
541
+ regex reg (" [^-a-zA-Z0-9_=+,.\\ /]" );
542
542
arg = regex_replace (arg, reg, " \\ $&" );
543
543
}
544
544
if (!swallowArg)
You can’t perform that action at this time.
0 commit comments