Skip to content
This repository has been archived by the owner on Mar 18, 2022. It is now read-only.

Fixed error occur when compiling with llvm-10 #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hxdnshx
Copy link

@hxdnshx hxdnshx commented Nov 17, 2020

Command llvm-config --cxxflags outputs following flags in llvm-10:

-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.

So I modified the order of flags to pass the compilation.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant