ninja/ninja-re2c-g.patch
Martin Pluskal 6266067b47 Accepting request 883105 from home:elvigia:branches:devel:tools:building
- ninja-re2c-g.patch tell re2c to generate gcc specific code using
  the -g flag, this usually results in lexers that are 20-25% faster.

OBS-URL: https://build.opensuse.org/request/show/883105
OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/ninja?expand=0&rev=55
2021-04-06 06:06:27 +00:00

12 lines
446 B
Diff

--- configure.py.orig
+++ configure.py
@@ -479,7 +479,7 @@
return False
if has_re2c():
n.rule('re2c',
- command='re2c -b -i --no-generation-date -o $out $in',
+ command='re2c -g -b -i --no-generation-date -o $out $in',
description='RE2C $out')
# Generate the .cc files in the source directory so we can check them in.
n.build(src('depfile_parser.cc'), 're2c', src('depfile_parser.in.cc'))