[llvm-dev] [RFR] JDK-8156980: Hotspot build doesn't have -std=gnu++98 gcc option
Leslie Zhai via llvm-dev
llvm-dev at lists.llvm.org
Wed Sep 5 18:09:13 PDT 2018
Hi Martin,
Thanks for your response!
I haven't tested compiling OpenJDK 12-dev with LLVM toolchain, perhaps
the issue had been fixed already, because clang treat invalid argument
'-std=gnu++98' not allowed with 'C' as error. It is better only apply
EXTRA_CFLAGS to C without EXTRA_CXXFLAGS.
Furthermore, I just have interest, did you use clang analyzer, sanitizer
and libfuzzer towards hotspot and jdk native library? Thanks!
在 2018年09月06日 02:10, Martin Buchholz 写道:
> We seem to have some confusion about flags for C vs. flags for C++.
> Most flags for most toolchains apply to both C and C++, so it's
> understandable that we want to unify them. But some flags, notably
> -std, are language-specific. We have both EXTRA_CFLAGS and
> EXTRA_CXXFLAGS, so we should expect EXTRA_CFLAGS to only apply to C.
--
Regards,
Leslie Zhai
More information about the llvm-dev
mailing list