2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2025-01-08 09:25:08 +01:00

Fixed the apidocs of parse_flags

This commit is contained in:
Thomas Nagy 2012-07-05 09:57:34 +02:00
parent c2aef04b0e
commit f9f31d77c2

View File

@ -89,19 +89,19 @@ MACRO_TO_DEST_CPU = {
}
@conf
def parse_flags(self, line, uselib, env=None, force_static=False):
def parse_flags(self, line, uselib_store, env=None, force_static=False):
"""
Parse the flags from the input lines, and add them to the relevant use variables::
def configure(conf):
conf.parse_flags('-O3', uselib_store='FOO')
conf.parse_flags('-O3', 'FOO')
# conf.env.CXXFLAGS_FOO = ['-O3']
# conf.env.CFLAGS_FOO = ['-O3']
:param line: flags
:type line: string
:param uselib: where to add the flags
:type uselib: string
:param uselib_store: where to add the flags
:type uselib_store: string
:param env: config set or conf.env by default
:type env: :py:class:`waflib.ConfigSet.ConfigSet`
"""
@ -122,6 +122,7 @@ def parse_flags(self, line, uselib, env=None, force_static=False):
lex.commenters = ''
lst = list(lex)
uselib = uselib_store
while lst:
x = lst.pop(0)
st = x[:2]