From f214269aa1beb61c1bd88a55fc4e6cd79817ddaa Mon Sep 17 00:00:00 2001 From: Samy Al Zahrani Date: Wed, 6 Apr 2016 06:23:17 -0800 Subject: [PATCH] Enable RTTI for clang-based builds This allows for a more verbose error message on mac os x ``` libc++abi.dylib: terminating with uncaught exception of type vips::VError ``` becomes ``` libc++abi.dylib: terminating with uncaught exception of type vips::VError: VipsImage: memory area too small --- should be 1191960 bytes, you passed 1189440 ``` --- binding.gyp | 1 + 1 file changed, 1 insertion(+) diff --git a/binding.gyp b/binding.gyp index 8f87dd13..78770753 100644 --- a/binding.gyp +++ b/binding.gyp @@ -167,6 +167,7 @@ 'CLANG_CXX_LIBRARY': 'libc++', 'MACOSX_DEPLOYMENT_TARGET': '10.7', 'GCC_ENABLE_CPP_EXCEPTIONS': 'YES', + 'GCC_ENABLE_CPP_RTTI': 'YES', 'OTHER_CPLUSPLUSFLAGS': [ '-fexceptions', '-Wall',