summaryrefslogtreecommitdiff
path: root/wscript
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2020-05-27 21:31:43 +1200
committerDouglas Bagnall <dbagnall@samba.org>2020-08-07 03:23:44 +0000
commitc51c15144e3fbdd3ebed301a077c687e23882e09 (patch)
tree5541bcab328bf23960108786fa84342e78c922ea /wscript
parent8a148193da0ba801f5302a6a2285b39ab6f4d247 (diff)
downloadsamba-c51c15144e3fbdd3ebed301a077c687e23882e09.tar.gz
Compile .l files (flex) with the waf rule at runtime
Other parts of Samba already compile these directly. This makes these files compile with modern compiler warnings. The primary difference (other than being built with a newer flex) is the loss of the #include "config.h" but this is not used in the other .l files elsewehre and does not seem to matter on modern systems. The generated output from compile_et asn1_compile has not changed (so I think the hx509 case is safe). The mdssvc case just has changed file locations and line numbers. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Diffstat (limited to 'wscript')
-rw-r--r--wscript3
1 files changed, 3 insertions, 0 deletions
diff --git a/wscript b/wscript
index e50aba255a7..334b2988234 100644
--- a/wscript
+++ b/wscript
@@ -371,6 +371,9 @@ def configure(conf):
msg="Checking compiler for full RELRO support"):
conf.env['ENABLE_RELRO'] = True
+ # #line statements in these generated files cause issues for lcov
+ conf.env.FLEXFLAGS += ["--noline"]
+
conf.SAMBA_CONFIG_H('include/config.h')
def etags(ctx):