diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-03-19 17:36:04 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-03-19 17:36:04 +0000 |
commit | 55b3b5f5c6c92f5dbb10dfe96a7de07a2b364338 (patch) | |
tree | fbefdad379a0f7f64a89448e9c4b4d00ba97b129 /lib/Driver/Tools.cpp | |
parent | 5953d8b37f92f0cf548941f617c9b0a7703df33b (diff) |
Driver/clang: -mattr strings were not comma separated.
- Apologies for commits w/o test cases; they are coming.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67310 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/Tools.cpp')
-rw-r--r-- | lib/Driver/Tools.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index 7000590654..34538114a5 100644 --- a/lib/Driver/Tools.cpp +++ b/lib/Driver/Tools.cpp @@ -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; } |