HomePhabricator

[clang][driver] set macOS as the target OS for -arch arm64 when clang is…
8ce5b6b2112cUnpublished

Authored by arphaman on Jun 23 2020, 9:05 PM.

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

[clang][driver] set macOS as the target OS for -arch arm64 when clang is running on an Apple Silicon mac

This change allows users to use -arch arm64 to build for mac when
running it on Apple Silicon mac without explicit -target option.

Differential Revision: https://reviews.llvm.org/D82428

(cherry picked from commit 565603cc94d79a8d0de6df840fd53714899fb890)