]> khamidou — GitHub mirrors - electron.git/commitdiff
Should enable C++ exceptions for all targets on Windows.
authorCheng Zhao <zcbenz@gmail.com>
Mon, 1 Jul 2013 12:52:48 +0000 (20:52 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Mon, 1 Jul 2013 12:52:48 +0000 (20:52 +0800)
It's a requirement for using standard library of VS.

atom.gyp
common.gypi

index 488f6b74237da9921ce66fe7c0d6e503f64767d1..1a87591ad8fff07138b8ba040c3ada59317c821c 100644 (file)
--- a/atom.gyp
+++ b/atom.gyp
         '.',
         'vendor',
       ],
-      'msvs_settings': {
-        'VCCLCompilerTool': {
-          # Programs that use the Standard C++ library must be compiled with C++
-          # exception handling enabled.
-          # http://support.microsoft.com/kb/154419
-          'ExceptionHandling': 1,
-        },
-      },
     },
     {
       'target_name': 'generated_sources',
index 2ca2954167c532c2af44e64bbfc80c37affa14e5..e559dc0b415976593761e63cc31db8f1396f4967 100644 (file)
         },
       },
     }],  # clang==1
+    # Windows specific settings.
+    ['OS=="win"', {
+      'target_defaults': {
+        'msvs_settings': {
+          'VCCLCompilerTool': {
+            # Programs that use the Standard C++ library must be compiled with C++
+            # exception handling enabled.
+            # http://support.microsoft.com/kb/154419
+            'ExceptionHandling': 1,
+          },
+        },
+      },
+    }],  # OS=="win"
   ],
 }