HomePhabricator

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

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

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