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

Alex Lorenz via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Dec 14 18:45:35 PST 2018


arphaman created this revision.
arphaman added reviewers: ab, t.p.northover.
Herald added subscribers: dexonsmith, jkorous, kristof.beyls, javed.absar.

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


Repository:
  rC Clang

https://reviews.llvm.org/D55731

Files:
  lib/Driver/ToolChains/Arch/AArch64.cpp
  lib/Driver/ToolChains/Arch/AArch64.h
  lib/Driver/ToolChains/Clang.cpp
  lib/Driver/ToolChains/CommonArgs.cpp
  test/Driver/aarch64-cpus.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D55731.178333.patch
Type: text/x-patch
Size: 5884 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20181215/12a904d7/attachment.bin>


More information about the cfe-commits mailing list