You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The pull request at #48 adds a add_flags method. These flags should be instead correctly set via detection in the cmake file.
The code is shown below;
defadd_flags(self):
ifsys.platform.startswith('win'):
returnforflagin ["CFLAGS", "CXXFLAGS"]:
flags= [os.environ.get(flag, "")]
ifnotflags[0]:
flags.pop(0)
ifshared_options.antlr_runtime=='static':
# When linking the ANTLR runtime statically, -fPIC is# still necessary because libparse_fasm will be a# shared library.flags.append("-fPIC")
# FIXME: These should be in the cmake config file?# Disable excessive warnings currently in ANTLR runtime.# warning: type attributes ignored after type is already defined# `class ANTLR4CPP_PUBLIC ATN;`flags.append('-Wno-attributes')
# Lots of implicit fallthroughs.# flags.append('-Wimplicit-fallthrough=0')ifflags:
os.environ[flag] =" ".join(flags)
The text was updated successfully, but these errors were encountered:
The pull request at #48 adds a
add_flags
method. These flags should be instead correctly set via detection in the cmake file.The code is shown below;
The text was updated successfully, but these errors were encountered: