Skip to content

Commit

Permalink
use c++17 to fix Mac M1 and Linux x64 builds
Browse files Browse the repository at this point in the history
  • Loading branch information
neoxpert committed Oct 13, 2022
1 parent a0227e3 commit 7999f41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
'target_name': 'better_sqlite3',
'dependencies': ['deps/sqlite3.gyp:sqlite3'],
'sources': ['src/better_sqlite3.cpp'],
'cflags': ['-std=c++14'],
'cflags_cc': ['-std=c++17'],
'xcode_settings': {
'OTHER_CPLUSPLUSFLAGS': ['-std=c++14', '-stdlib=libc++'],
'OTHER_CPLUSPLUSFLAGS': ['-std=c++17', '-stdlib=libc++'],
},
'conditions': [
['OS=="linux"', {
Expand Down

0 comments on commit 7999f41

Please sign in to comment.