Sometimes users pass this option when targeting embedded architectures like armv7m on non-darwin platforms.
Emit a warning instead of erroring out, which restores the behavior prior to 34d7acd444b88342fc93fca202608c1e16fa5946.
Paths
| Differential D155123
[Driver] Warn about -mios-version-min instead of erroring out when targeting MachO embedded architectures ClosedPublic Authored by ahatanak on Jul 12 2023, 2:41 PM.
Details
Summary Sometimes users pass this option when targeting embedded architectures like armv7m on non-darwin platforms. Emit a warning instead of erroring out, which restores the behavior prior to 34d7acd444b88342fc93fca202608c1e16fa5946.
Diff Detail
Event TimelineComment Actions LGTM.
This revision is now accepted and ready to land.Jul 12 2023, 6:15 PM
ahatanak marked 2 inline comments as done. Comment ActionsThank you for the review. 509d051606e837d1b8291743cd1683cf8c582afc
Revision Contents
Diff 539741 clang/lib/Driver/Driver.cpp
clang/lib/Driver/ToolChains/Darwin.h
clang/lib/Driver/ToolChains/Darwin.cpp
clang/test/Driver/macho-embedded.c |
-target is deprecated since Clang 3.4 (274b6f0c87a6a1798de0a68135afc7f95def6277). Use --target= for new tests?
-fdriver-only may be slightly better than -### as -fdriver-only causes clang to return with non-zero upon an error, while -### doesn't.