diff options
author | Chris Lattner <sabre@nondot.org> | 2008-03-09 01:36:43 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-03-09 01:36:43 +0000 |
commit | e4a6b18c2e555b4854c71e9ea96e5efca12d6b85 (patch) | |
tree | 7ff82c7173ec5c43bf194fd9a244f91e53fb4fc1 /clang | |
parent | 22ad07ca07f8b1832b3a466fd53f278d9add9aca (diff) | |
download | bcm5719-llvm-e4a6b18c2e555b4854c71e9ea96e5efca12d6b85.tar.gz bcm5719-llvm-e4a6b18c2e555b4854c71e9ea96e5efca12d6b85.zip |
secondary targets are gone, simplify this.
llvm-svn: 48067
Diffstat (limited to 'clang')
-rw-r--r-- | clang/NOTES.txt | 38 |
1 files changed, 5 insertions, 33 deletions
diff --git a/clang/NOTES.txt b/clang/NOTES.txt index 623f01cd64a..0f4a8de0aa9 100644 --- a/clang/NOTES.txt +++ b/clang/NOTES.txt @@ -102,39 +102,11 @@ TODO: New language feature: Configuration queries: // Specifying targets: -triple and -arch ===---------------------------------------------------------------------===// -The clang supports "-triple" and "-arch" options. At most one -triple option may -be specified, while multiple -arch options can be specified. Both are optional. +The clang supports "-triple" and "-arch" options. At most one -triple and one +-arch option may be specified. Both are optional. The "selection of target" behavior is defined as follows: -(1) If the user does not specify -triple: - - (a) If no -arch options are specified, the target triple used is the host - triple (in llvm/Config/config.h). - - (b) If one or more -arch's are specified (and no -triple), then there is - one triple for each -arch, where the specified arch is substituted - for the arch in the host triple. Example: - - host triple = i686-apple-darwin9 - command: clang -arch ppc -arch ppc64 ... - triples used: ppc-apple-darwin9 ppc64-apple-darwin9 - -(2) The user does specify a -triple (only one allowed): - - (a) If no -arch options are specified, the triple specified by -triple - is used. E.g clang -triple i686-apple-darwin9 - - (b) If one or more -arch options are specified, then the triple specified - by -triple is used as the primary target, and the arch's specified - by -arch are used to create secondary targets. For example: - - clang -triple i686-apple-darwin9 -arch ppc -arch ppc64 - - has the following targets: - - i686-apple-darwin9 (primary target) - ppc-apple-darwin9 (secondary target) - ppc64-apple-darwin9 (secondary target) - -The secondary targets are used in the 'portability' model (see below). +(1) If the user does not specify -triple, we default to the host triple. +(2) If the user specifies a -arch, that overrides the arch in the host or + specified triple. |