Skip to content

Commit

Permalink
update to C++14
Browse files Browse the repository at this point in the history
- recent v8.h uses C++14 features, update compiler options for v8pp too
  • Loading branch information
pmed committed Mar 7, 2021
1 parent c6caf79 commit 3dcb1e6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
CXX ?= c++
CXXFLAGS += -Wall -Wextra -std=c++11 -fPIC -fno-rtti -DV8PP_ISOLATE_DATA_SLOT=0
CXXFLAGS += -Wall -Wextra -std=c++14 -fPIC -fno-rtti -DV8PP_ISOLATE_DATA_SLOT=0
LDFLAGS += -shared
AR = ar
ARFLAGS = rcs
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@

# v8pp

Header-only library to expose C++ classes and functions into [V8](https://developers.google.com/v8/) to use them in JavaScript code. v8pp uses heavy template metaprogramming and variadic template parameters which requires modern compiler with C++11 support. The library has been tested on:
Header-only library to expose C++ classes and functions into [V8](https://developers.google.com/v8/) to use them in JavaScript code. v8pp requires a compiler with C++14 support. The library has been tested on:

* Microsoft Visual C++ 2015/2017 (Windows 10)
* Microsoft Visual C++ 2019 (Windows 10)
* GCC 5.4.0 (Ubuntu 16.04)
* Clang 5.0.0 (Ubuntu 16.04)

Expand Down
2 changes: 1 addition & 1 deletion build.ninja
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cxx = c++
cxxflags = -Wall -Wextra -Wno-return-type-c-linkage -std=c++11 -fPIC -fno-rtti -I. -I./v8pp -DV8PP_ISOLATE_DATA_SLOT=0
cxxflags = -Wall -Wextra -Wno-return-type-c-linkage -std=c++14 -fPIC -fno-rtti -I. -I./v8pp -DV8PP_ISOLATE_DATA_SLOT=0
ldflags = -lv8 -lv8_libplatform -lv8_libbase -L. -lv8pp -ldl -lpthread

rule cxx
Expand Down

0 comments on commit 3dcb1e6

Please sign in to comment.