[llvm-commits] [PATCH] Add configuration of CLANG_VENDOR, VENDOR_GCC_VERISON

ronl at codeaurora.org ronl at codeaurora.org
Mon Aug 27 10:39:36 PDT 2012


Add configuration of CLANG_VENDOR, VENDOR_GCC_VERISON

Note:
Two patches associated with this commit, first for llvm, second for clang.
The clang patch
   0002-Add-configuration-of-CLANG_VENDOR-VENDOR_GCC_VERISON.patch
depends on the llvm patch
   0001-Add-configuration-of-CLANG_VENDOR-VENDOR_GCC_VERISON.patch

Defaults for the new configure options:
  --with-vendor-gcc-version defaults to.4.2.1.
  --with-clang-vendor defaults to null.

The -v and --version command line options will print the version # last,
after the thread model and target.

-v will no longer produce unused command line argument warnings. This was
for GCC comparability, which prints the version number last, and suppresses
unused option warnings.

The vendor name, and version are configured via the following options to
configure \
  --with-clang-vendor="QuIC LLVM Hexagon 6.1-pre-BT_201208240506 " \
  --with-vendor-gcc-version="6.0.00" \

Examples:

$ clang -v -Wall |& tail -1
QuIC LLVM Hexagon 6.1-pre-BT_201208240506 clang version 3.2 (clang
<repo_url> <ID>) (llvm <repo_url> <ID>)

$ clang -v
Target: hexagon-unknown-linux-gnu
Thread model: posix
QuIC LLVM Hexagon 6.1-pre-BT_201208240506 clang version 3.2 (clang
<repo_url> <ID>) (llvm <repo_url> <ID>)

$ clang -dumpversion
6.0.03

$ clang --version
Target: hexagon-unknown-linux-gnu
Thread model: posix
QuIC LLVM Hexagon 6.1-pre-BT_201208240506 clang version 3.2 (clang
<repo_url> <ID>) (llvm <repo_url> <ID>)

Hexagon Clang defined __VERSION__
__VERSION__ "4.2.1 Compatible QuIC LLVM Hexagon 6.1-pre-BT_201208240506
Clang 3.2 (clang <repo_url> <ID>) (llvm <repo_url> <ID>)

Testing:
cmake
cmake -DCLANG_VENDOR_GCC_VERSION=
cmake -DCLANG_VENDOR=
cmake -DCLANG_VENDOR_GCC_VERSION= -DCLANG_VENDOR=
cmake -DCLANG_VENDOR_GCC_VERSION=6.0.03
cmake -DCLANG_VENDOR="QuIC LLVM Hexagon 6.1-pre-BT_201208240506"
cmake -DCLANG_VENDOR_GCC_VERSION=6.0.03 -DCLANG_VENDOR="QuIC LLVM Hexagon
6.1-pre-BT_201208240506"

configure
configure --with-vendor-gcc-version=
configure --with-vendor-gcc-version=6.0.03
configure --with-clang-vendor=
configure --with-clang-vendor= --with-vendor-gcc-version=
configure --with-clang-vendor="QuIC LLVM Hexagon 6.1-pre-BT_201208240506 "
configure --with-vendor-gcc-version=6.0.03 --with-clang-vendor="QuIC LLVM
Hexagon 6.1-pre-BT_201208240506 "
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-configuration-of-CLANG_VENDOR-VENDOR_GCC_VERISON.patch
Type: application/octet-stream
Size: 7475 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120827/c2d1e78c/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Add-configuration-of-CLANG_VENDOR-VENDOR_GCC_VERISON.patch
Type: application/octet-stream
Size: 6045 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120827/c2d1e78c/attachment-0001.obj>


More information about the llvm-commits mailing list