[PATCH] D136712: Define _GNU_SOURCE for arm baremetal in C++ mode.
Tom Hughes via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 25 13:28:41 PDT 2022
tomhughes added inline comments.
================
Comment at: clang/lib/Basic/Targets/ARM.cpp:697-698
Builder.defineMacro("__ELF__");
+ if (Opts.CPlusPlus)
+ Builder.defineMacro("_GNU_SOURCE");
+ }
----------------
I think this should apply to both C and C++
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D136712/new/
https://reviews.llvm.org/D136712
More information about the cfe-commits
mailing list