[cfe-commits] revised: [PATCH] Add configuration of CLANG_VENDOR, VENDOR_GCC_VERSION

ronl ronl at codeaurora.org
Mon Aug 27 13:13:02 PDT 2012


Please find attached two revised patches for Add configuration of
CLANG_VENDOR, VENDOR_GCC_VERSION.

Removes the extraneous braces {} from an if statement.

Removed extraneous space from a comment in the file configure.ac.

 

 

Note:

Two patches associated with this commit, first for llvm, second for clang.

The clang patch

   0002-Add-configuration-of-CLANG_VENDOR-VENDOR_GCC_VERSION.patch

depends on the llvm patch

   0001-Add-configuration-of-CLANG_VENDOR-VENDOR_GCC_VERSION.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 --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120827/69f40dbc/attachment.html>


More information about the cfe-commits mailing list