Open hxdnshx opened 3 years ago
Command llvm-config --cxxflags outputs following flags in llvm-10:
llvm-config --cxxflags
-I/usr/lib/llvm-10/include -std=c++14 -fno-exceptions -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
Note that flag -std=c++14 sets the cxx standard to 14. But this setting will be overwritten by the flag set in the Makefile.
-std=c++14
Makefile
So I modified the order of flags to pass the compilation.
Command
llvm-config --cxxflags
outputs following flags in llvm-10:Note that flag
-std=c++14
sets the cxx standard to 14. But this setting will be overwritten by the flag set in theMakefile
.So I modified the order of flags to pass the compilation.