This is an archive of the discontinued LLVM Phabricator instance.

[darwin][arm64] use the "cyclone" CPU for Darwin even when `-arch` is not specified
ClosedPublic

Authored by arphaman on Dec 14 2018, 6:45 PM.

Details

Summary

The -target option allows the user to specify the build target using LLVM triple. The triple includes the arch, and so the -arch option is redundant. This should work just as well without the -arch. However, the driver has a bug in which it doesn't target the "Cyclone" CPU for darwin if -target is used without -arch. This patch fixes this issue.

rdar://46743182

Diff Detail

Repository
rC Clang

Event Timeline

arphaman created this revision.Dec 14 2018, 6:45 PM
ab accepted this revision.Dec 17 2018, 11:04 AM

LGTM, thanks!

This revision is now accepted and ready to land.Dec 17 2018, 11:04 AM
This revision was automatically updated to reflect the committed changes.