Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TooTallNate/1838508 to your computer and use it in GitHub Desktop.
Save TooTallNate/1838508 to your computer and use it in GitHub Desktop.
From e1369d254175a646647f1f2e86ace1d9ee5f613a Mon Sep 17 00:00:00 2001
From: Nathan Rajlich <nathan@tootallnate.net>
Date: Wed, 15 Feb 2012 11:50:51 -0800
Subject: [PATCH] Default to static linking CRT on Windows.
---
common.gypi | 16 ++--------------
1 files changed, 2 insertions(+), 14 deletions(-)
diff --git a/common.gypi b/common.gypi
index 20a5d11..582af85 100644
--- a/common.gypi
+++ b/common.gypi
@@ -22,13 +22,7 @@
],
'msvs_settings': {
'VCCLCompilerTool': {
- 'target_conditions': [
- ['library=="static_library"', {
- 'RuntimeLibrary': 1, # static debug
- }, {
- 'RuntimeLibrary': 3, # DLL debug
- }],
- ],
+ 'RuntimeLibrary': 1, # static debug
'Optimization': 0, # /Od, no optimization
'MinimalRebuild': 'true',
'OmitFramePointers': 'false',
@@ -49,13 +43,7 @@
],
'msvs_settings': {
'VCCLCompilerTool': {
- 'target_conditions': [
- ['library=="static_library"', {
- 'RuntimeLibrary': 0, # static release
- }, {
- 'RuntimeLibrary': 2, # debug release
- }],
- ],
+ 'RuntimeLibrary': 0, # static release
'Optimization': 3, # /Ox, full optimization
'FavorSizeOrSpeed': 1, # /Ot, favour speed over size
'InlineFunctionExpansion': 2, # /Ob2, inline anything eligible
--
1.7.5.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment