forked from OSchip/llvm-project
Driver/clang: -mattr strings were not comma separated.
- Apologies for commits w/o test cases; they are coming. llvm-svn: 67310
This commit is contained in:
parent
37061eef5d
commit
403c468065
|
@ -197,9 +197,13 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
|
|||
std::string Attrs;
|
||||
for (unsigned i=0; i < NumFeatureOptions; ++i) {
|
||||
if (Args.hasArg(FeatureOptions[i].Pos)) {
|
||||
if (!Attrs.empty())
|
||||
Attrs += ',';
|
||||
Attrs += '+';
|
||||
Attrs += FeatureOptions[i].Name;
|
||||
} else if (Args.hasArg(FeatureOptions[i].Neg)) {
|
||||
if (!Attrs.empty())
|
||||
Attrs += ',';
|
||||
Attrs += '-';
|
||||
Attrs += FeatureOptions[i].Name;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue