1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Use cppflags to pass preprocessor options

This commit is contained in:
Nobuyoshi Nakada 2019-10-23 02:53:36 +09:00
parent d5d5844744
commit 46f175ed5c
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60
2 changed files with 4 additions and 2 deletions

View file

@ -159,7 +159,7 @@ env:
<<: *cron-only
<<: *make-test-only
env:
- BEFORE_INSTALL="sed vm_opts.h -e 's/OPT_SUPPORT_JOKE *0/OPT_SUPPORT_JOKE 1/' -i"
- cppflags=-DOPT_SUPPORT_JOKE
- &CPDEBUG
name: CPDEBUG
@ -167,7 +167,7 @@ env:
<<: *cron-only
<<: *make-test-only
env:
- DEFS="-DCPDEBUG"
- cppflags=-DCPDEBUG
- &WITH_COROUTINE_UCONTEXT
name: COROUTINE=ucontext

View file

@ -61,7 +61,9 @@
#define OPT_STACK_CACHING 0
/* misc */
#ifndef OPT_SUPPORT_JOKE
#define OPT_SUPPORT_JOKE 0
#endif
#ifndef VM_COLLECT_USAGE_DETAILS
#define VM_COLLECT_USAGE_DETAILS 0