File tree 3 files changed +9
-3
lines changed
3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -188,9 +188,9 @@ For a more comprehensive example see
188
188
- Dir : thumb/v6-m
189
189
# List of one or more normalized command line options, as generated by Clang
190
190
# from the command line options or from Mappings below.
191
- # Here, if the flags are a superset of {target=thumbv6m-none- unknown-eabi}
191
+ # Here, if the flags are a superset of {target=thumbv6m-unknown-none -eabi}
192
192
# then this multilib variant will be considered a match.
193
- Flags : [--target=thumbv6m-none- unknown-eabi]
193
+ Flags : [--target=thumbv6m-unknown-none -eabi]
194
194
195
195
# Similarly, a multilib variant targeting Arm v7-M with an FPU (floating
196
196
# point unit).
Original file line number Diff line number Diff line change @@ -217,7 +217,7 @@ function test-armv7m-picolibc() {
217
217
" ${@ } "
218
218
219
219
${NINJA} -vC " ${BUILD_DIR} /compiler-rt" install
220
- mv " ${BUILD_DIR} /install/lib/armv7m-none- unknown-eabi" /* " ${BUILD_DIR} /install/lib"
220
+ mv " ${BUILD_DIR} /install/lib/armv7m-unknown-none -eabi" /* " ${BUILD_DIR} /install/lib"
221
221
222
222
check-runtimes
223
223
}
Original file line number Diff line number Diff line change @@ -1151,6 +1151,12 @@ std::string Triple::normalize(StringRef Str) {
1151
1151
}
1152
1152
}
1153
1153
1154
+ // If "none" is in the middle component in a three-component triple, treat it
1155
+ // as the OS (Components[2]) instead of the vendor (Components[1]).
1156
+ if (Found[0 ] && !Found[1 ] && !Found[2 ] && Found[3 ] &&
1157
+ Components[1 ] == " none" && Components[2 ].empty ())
1158
+ std::swap (Components[1 ], Components[2 ]);
1159
+
1154
1160
// Replace empty components with "unknown" value.
1155
1161
for (StringRef &C : Components)
1156
1162
if (C.empty ())
You can’t perform that action at this time.
0 commit comments