Commit 03e2351
Daniel Domjan
RUBY-32941 Only append to
`with_cppflags()` overrides `$CPPFLAGS` with the given argument and restores the original flags upon return. This can lead to the accidental removal of some include paths like the include path of `jemalloc`, so instead of overriding the flags, we only want to append to them.
Note, there is `append_cflags()`, but it first checks if the flag is valid by compiling a simple snippet that includes `ruby.h` with `-Werror`. The internal sources, however, can emit warnings, which cause the check to fail.$CPPFLAGS instead of overriding them1 parent 69ec40e commit 03e2351
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
0 commit comments