aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-09-28 13:53:54 -0700
committerAlon Zakai <alonzakai@gmail.com>2012-09-28 13:53:54 -0700
commit8e6b210dcb9a40b090259c16deddb70d92fa1c64 (patch)
tree7cbcebf4e8ef9945fc21a1175d219d1dadde12f8
parent9070da684d66719f7b130a6d0360491bfc727ee2 (diff)
workaround for libcxx --std=c++11 issue
-rw-r--r--tools/shared.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/shared.py b/tools/shared.py
index 89ab76a1..bdfec8ed 100644
--- a/tools/shared.py
+++ b/tools/shared.py
@@ -271,7 +271,8 @@ if USE_EMSDK:
'-Xclang', '-isystem' + path_from_root('system', 'include', 'net'),
'-Xclang', '-isystem' + path_from_root('system', 'include', 'SDL'),
] + [
- '-U__APPLE__', '-U__linux__'
+ '-U__APPLE__', '-U__linux__',
+ '-D_LIBCPP_HAS_NO_DELETED_FUNCTIONS' # otherwise libc++ has errors with --std=c++11
]
COMPILER_OPTS += EMSDK_OPTS
else: