clang -target option does not recognize watchos

Originator:jake.petroules
Number:rdar://22246787 Date Originated:12-Aug-2015 02:10 AM
Status:Duplicate of 21012522 Resolved:
Product:ct:Developer Tools Product Version:Xcode 7.0 beta 5 (7A176x), Apple LLVM version 7.0.0 (clang-700.0.65)
Classification: Reproducible:Always
 
Summary:
Clang's -target option does not seem to handle watchos properly in the triple. When specifying watchos, the underlying triple passed to clang -cc1 is ios5.0.0

Steps to Reproduce:
Invoke: DEVELOPER_DIR=/Applications/Xcode-beta.app/Contents/Developer xcrun clang -v -target armv7k-apple-watchos2.0-macho -o o -c c.c



Expected Results:
Underlying command line contains: clang -cc1 -triple thumbv7k-apple-watchos2.0.0-macho

Actual Results:
Underlying command line contains: clang -cc1 -triple thumbv7k-apple-ios5.0.0-macho

Version:
Xcode 7.0 beta 5 (7A176x)
Apple LLVM version 7.0.0 (clang-700.0.65)

Notes:
Passing -mwatchos-version-min=2.0 generates the correct underlying triple, however since I specified watchos2.0 in the target it should make specification of the -m*-version-min unnecessary just as it does when targeting the OS X and iOS platforms.

Configuration:


Attachments:

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!