diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-03-31 17:35:15 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-03-31 17:35:15 +0000 |
commit | af07f936b698575f2c91f1c1134c116f1ef0dedd (patch) | |
tree | 93ff0ae134f546b8956c671d54ad9a61a56243f7 /lib/Driver/Tools.cpp | |
parent | cfdee929290b73ae1c4e5896d5cba120bc677661 (diff) |
(LLVM up) Update to use llvm::sys::getHostTriple().
- Always pass -triple to clang-cc (-arch will be removed).
- clang-cc doesn't play guess work with the target triple anymore.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68119 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/Tools.cpp')
-rw-r--r-- | lib/Driver/Tools.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index e315a2f20e..cae0766873 100644 --- a/lib/Driver/Tools.cpp +++ b/lib/Driver/Tools.cpp @@ -39,6 +39,11 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA, const char *LinkingOutput) const { ArgStringList CmdArgs; + CmdArgs.push_back("-triple"); + const char *TripleStr = + Args.MakeArgString(getToolChain().getTripleString().c_str()); + CmdArgs.push_back(TripleStr); + if (isa<AnalyzeJobAction>(JA)) { assert(JA.getType() == types::TY_Plist && "Invalid output type."); CmdArgs.push_back("-analyze"); @@ -371,11 +376,6 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA, Args.AddAllArgValues(CmdArgs, options::OPT_Xclang); - // FIXME: Always pass the full triple once we aren't concerned with - // ccc compat. - CmdArgs.push_back("-arch"); - CmdArgs.push_back(getToolChain().getArchName().c_str()); - if (Output.getType() == types::TY_Dependencies) { // Handled with other dependency code. } else if (Output.isPipe()) { |