]> source.dussan.org Git - rspamd.git/commit
[Minor] Make ragel-generated files independent of the parent directory
authorPeter Wu <peter@lekensteyn.nl>
Tue, 21 Jan 2020 02:53:24 +0000 (02:53 +0000)
committerPeter Wu <peter@lekensteyn.nl>
Tue, 21 Jan 2020 03:16:57 +0000 (03:16 +0000)
commit3af38b800677a463b97588af383caacf09ce31d1
tree2fb02b40d4d31e97cf631b22a2bdbafa2fbc4b99
parentd498196712c209fdcbd92f65c0b47ff26fc6c009
[Minor] Make ragel-generated files independent of the parent directory

* Use relative paths for `#line` directives to allow reproducible builds
  independent of the absolute build directory. For /b/rspamd/src/x.rl
  and build dir /b/build, it could result in `../../build/src/x.rl`.
* The `-L` option for `Inhibit writing #line directives` is useless, it
  just comments out the line with `/* ... */`, but that means that the
  source file is still different.
* Note that ragel only accepts one input file, despite plural `INPUTS`.
cmake/FindRagel.cmake