From 0815db1d2336f4955044e2bf420766322d5701bd Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Mon, 3 Mar 2014 13:27:44 -0800 Subject: [PATCH] Add c++11 flag to gyp file --- script/ci.sh | 2 ++ tree_sitter.gyp | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/script/ci.sh b/script/ci.sh index 48231928..803d202b 100755 --- a/script/ci.sh +++ b/script/ci.sh @@ -1,5 +1,7 @@ #!/usr/bin/env bash +set -e + make compiler_specs out/Default/compiler_specs diff --git a/tree_sitter.gyp b/tree_sitter.gyp index 0feea7db..ea98a8dd 100644 --- a/tree_sitter.gyp +++ b/tree_sitter.gyp @@ -49,10 +49,12 @@ }, ], 'target_defaults': { + 'cflags_cc': [ + '-std=c++0x', + ], 'xcode_settings': { 'ALWAYS_SEARCH_USER_PATHS': 'NO', 'CLANG_CXX_LANGUAGE_STANDARD': 'c++0x', - 'CLANG_CXX_LIBRARY': 'libc++', }, }, }