Closed thesamesam closed 1 year ago
Note that in this case the environment flags (-O2 -pipe -march\=native -fno-diagnostics-color
) ARE split correctly, it is just the flags set by the package itself that are not.
Yeah ehhh, turns out 5e173ae1de068bea5890c4c2438c5b1e1cdad702 changed API and thus each flag should be a separate item rather putting everything in same string. ie. t.cflags << "-Wall" << "-Wextra" << "-O3"
and that would work fine. But there's probably a lot of applications that do this so I restored API compatibility in #24
Also this library has 0 tests so :sweat_smile:
Just merged #24 and tagged 1.2.1
https://github.com/ffi/ffi-compiler/releases/tag/1.2.1
We had a report in Gentoo at https://bugs.gentoo.org/906892 of http-parser-1.2.3 failing to build with ffi-compiler-1.2.0 like so:
@matoro points out that the args from https://github.com/cotag/http-parser/blob/master/ext/Rakefile#L4 (the package itself) seem to not be split by ffi-compiler.
See also https://github.com/ffi/ffi-compiler/pull/22.