Skip to content

Commit e4a6b18

Browse files
committed
secondary targets are gone, simplify this.
llvm-svn: 48067
1 parent 22ad07c commit e4a6b18

File tree

1 file changed

+5
-33
lines changed

1 file changed

+5
-33
lines changed

clang/NOTES.txt

Lines changed: 5 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -102,39 +102,11 @@ TODO: New language feature: Configuration queries:
102102
// Specifying targets: -triple and -arch
103103
===---------------------------------------------------------------------===//
104104

105-
The clang supports "-triple" and "-arch" options. At most one -triple option may
106-
be specified, while multiple -arch options can be specified. Both are optional.
105+
The clang supports "-triple" and "-arch" options. At most one -triple and one
106+
-arch option may be specified. Both are optional.
107107

108108
The "selection of target" behavior is defined as follows:
109109

110-
(1) If the user does not specify -triple:
111-
112-
(a) If no -arch options are specified, the target triple used is the host
113-
triple (in llvm/Config/config.h).
114-
115-
(b) If one or more -arch's are specified (and no -triple), then there is
116-
one triple for each -arch, where the specified arch is substituted
117-
for the arch in the host triple. Example:
118-
119-
host triple = i686-apple-darwin9
120-
command: clang -arch ppc -arch ppc64 ...
121-
triples used: ppc-apple-darwin9 ppc64-apple-darwin9
122-
123-
(2) The user does specify a -triple (only one allowed):
124-
125-
(a) If no -arch options are specified, the triple specified by -triple
126-
is used. E.g clang -triple i686-apple-darwin9
127-
128-
(b) If one or more -arch options are specified, then the triple specified
129-
by -triple is used as the primary target, and the arch's specified
130-
by -arch are used to create secondary targets. For example:
131-
132-
clang -triple i686-apple-darwin9 -arch ppc -arch ppc64
133-
134-
has the following targets:
135-
136-
i686-apple-darwin9 (primary target)
137-
ppc-apple-darwin9 (secondary target)
138-
ppc64-apple-darwin9 (secondary target)
139-
140-
The secondary targets are used in the 'portability' model (see below).
110+
(1) If the user does not specify -triple, we default to the host triple.
111+
(2) If the user specifies a -arch, that overrides the arch in the host or
112+
specified triple.

0 commit comments

Comments
 (0)