[PATCH] D135076: [Clang] Make offloading flags accept '-' and '--'
Fangrui Song via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 3 09:17:40 PDT 2022
MaskRay added a comment.
There are traditionally some single-dash long options (perhaps classical Mac OS style) which conflict with short options. I think nowadays we try to avoid such single-dash short options.
(For example, GNU ld now requires all new long options to use two-dashes, after knowing the problem with `-omagic`.)
I can make a patch to make cc1 `-o` `Separate` instead of `JoinedOrSeparate`, which will hopefully solve your pain of specifying a misspelled `-offloat*` cc1 option without good diagnostics.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D135076/new/
https://reviews.llvm.org/D135076
More information about the cfe-commits
mailing list