]> granicus.if.org Git - clang/commit
Update two options to my proposed syntax for user-facing driver options:
authorChandler Carruth <chandlerc@gmail.com>
Thu, 20 Jun 2013 09:42:40 +0000 (09:42 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Thu, 20 Jun 2013 09:42:40 +0000 (09:42 +0000)
commitfbd4116c4287cba862fbf3ff77b4032cbe98f78a
tree73f3f0f3e53f06bb2fbb5955e7f0d62143af3d8f
parent9122025df6682a29ba4bdfc4330d2caebb8ea4de
Update two options to my proposed syntax for user-facing driver options:

  -gcc-toolchain foo  ->  --gcc-toolchain=foo
  -target foo         ->  --target=foo

I've added legacy aliases for the original spellings. I've updated the
canonical tests to check both spellings, and switched all of the
-gcc-toolchain usages elsewhere in the test suite to use the new one.
I've updated some of the usages of -target to the new syntax, but will
finish that in a separate entirely mechanical change once I'm sure this
won't get rolled back for some reason (It touches a *huge* number of RUN
lines in the test suite unsurprisingly).

A nice result is that the three most common flags I end up using when
doing cross compiles are all now consistent: --target=, --sysroot=, and
--gcc-toolchain=.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@184408 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Driver/Options.td
test/Driver/gcc-toolchain.cpp
test/Driver/linux-ld.c
test/Driver/mips-cs-header-search.cpp
test/Driver/mips-cs-ld.c
test/Driver/montavista-gcc-toolchain.c
test/Driver/target.c