Skip to content

Commit

Permalink
Merge pull request #54 from DeriveSDK/bug/missing-build-options
Browse files Browse the repository at this point in the history
Bug/missing build options
  • Loading branch information
ftk authored May 7, 2022
2 parents 6756324 + 9cb9546 commit e747cd8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
10 changes: 10 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,16 @@ if get_option('debugger')==true
add_project_arguments('-DCONFIG_DEBUGGER', language : ['c','cpp'])
endif

### User option: Strict NaN boxing
if get_option('strictnan')==true
add_project_arguments('-DJS_STRICT_NAN_BOXING', language : ['c','cpp'])
endif

### User option: Bignum support (qjs)
if get_option('bignum')==true
add_project_arguments('-DCONFIG_BIGNUM', language : ['c','cpp'])
endif

# MSVC
if meson.get_compiler('c').get_id() == 'cl'
add_project_arguments('-D_CRT_SECURE_NO_WARNINGS', language : ['c','cpp'])
Expand Down
2 changes: 2 additions & 0 deletions meson_options.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
option('debugger', type : 'boolean', value : false, description : 'Add debugger support')
option('jsx', type : 'boolean', value : false, description : 'Add JSX support')
option('storage', type : 'boolean', value : false, description : 'Add persistent storage support')
option('strictnan', type : 'boolean', value : false, description : 'Enable strict NaN boxing')
option('bignum', type : 'boolean', value : true, description : 'Enable bignum (qjs)')
option('qjsc', type : 'boolean', value : false, description : 'Build QJSC application')
option('qjs', type : 'boolean', value : false, description : 'Build QJS application (read notes in meson.build)')

0 comments on commit e747cd8

Please sign in to comment.