From 70ac31da1a41c6f8c53d931b5802c6c93f7b6b83 Mon Sep 17 00:00:00 2001 From: Alexis Svinartchouk Date: Fri, 11 Jan 2019 16:39:31 +0100 Subject: [PATCH] Fix build on xcode 10.1 --- binding.gyp | 15 +++++++++++++++ package.json | 26 +++++++++++++++++++++----- 2 files changed, 36 insertions(+), 5 deletions(-) diff --git a/binding.gyp b/binding.gyp index 94582f4..e2bbcae 100644 --- a/binding.gyp +++ b/binding.gyp @@ -14,6 +14,21 @@ 'src/common.hpp' ], 'cflags': [ '-O2' ], + 'conditions': [ + [ + 'OS=="mac"', + { + "xcode_settings": { + "OTHER_CPLUSPLUSFLAGS": [ + "-stdlib=libc++" + ], + "OTHER_LDFLAGS": [ + "-stdlib=libc++" + ] + }, + } + ], + ], }, ], } diff --git a/package.json b/package.json index 67078db..f33e941 100644 --- a/package.json +++ b/package.json @@ -1,4 +1,5 @@ -{ "name": "xxhash", +{ + "name": "xxhash", "version": "0.2.4", "author": "Brian White ", "description": "An xxhash binding for node.js", @@ -10,8 +11,23 @@ "install": "node-gyp rebuild", "test": "node test/test.js" }, - "engines": { "node" : ">=0.10.0" }, - "keywords": [ "hash", "xxhash", "fast", "streaming" ], - "licenses": [ { "type": "MIT", "url": "https://raw.github.com/mscdex/node-xxhash/master/LICENSE" } ], - "repository": { "type": "git", "url": "https://github.com/mscdex/node-xxhash.git" } + "engines": { + "node": ">=0.10.0" + }, + "keywords": [ + "hash", + "xxhash", + "fast", + "streaming" + ], + "licenses": [ + { + "type": "MIT", + "url": "https://raw.github.com/mscdex/node-xxhash/master/LICENSE" + } + ], + "repository": { + "type": "git", + "url": "https://github.com/mscdex/node-xxhash.git" + } }