]> granicus.if.org Git - clang/commit
Put target deduced from executable name at the start of argument list
authorSerge Pavlov <sepavloff@gmail.com>
Wed, 20 Sep 2017 15:22:27 +0000 (15:22 +0000)
committerSerge Pavlov <sepavloff@gmail.com>
Wed, 20 Sep 2017 15:22:27 +0000 (15:22 +0000)
commitf6e021e7e979a9955c715a682af7ca649021643e
tree83b5f7acaa1149ac500ac98f8d4a0dc6dbcee9e0
parent9a0f62efc8314133e355a190fa2cac4eb18dd2cc
Put target deduced from executable name at the start of argument list

When clang is called as 'target-clang', put deduced target option at
the start of argument list so that option '--target=' specified in command
line could override it.

This change fixes PR34671.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@313760 91177308-0d34-0410-b5e6-96231b3b80d8
test/Driver/target-override.c [new file with mode: 0644]
tools/driver/driver.cpp