[llvm-bugs] [Bug 45449] New: -C requires -E
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Apr 6 12:59:12 PDT 2020
https://bugs.llvm.org/show_bug.cgi?id=45449
Bug ID: 45449
Summary: -C requires -E
Product: clang
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: Frontend
Assignee: unassignedclangbugs at nondot.org
Reporter: ndesaulniers at google.com
CC: enh at google.com, llvm-bugs at lists.llvm.org,
neeilans at live.com, richard-llvm at metafoo.co.uk,
sguelton at redhat.com, srhines at google.com,
tstellar at redhat.com
Upgrading Android's checkout of GNU Make to version 3.4
(https://android-review.googlesource.com/c/toolchain/make/+/1278571) exposed a
build failure due to the error: invalid argument '-C' only allowed with '-E'.
Documented here:
https://gcc.gnu.org/onlinedocs/gcc/Preprocessor-Options.html#Preprocessor-Options
I suspect it's just a slight papercut, and that we should just have `-C` imply
`-E` which I think would match GCC's behavior. Otherwise we should submit a
patch to GNU Make to use `-C -E` together for portability to Clang.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200406/fc3fbeb8/attachment.html>
More information about the llvm-bugs
mailing list