Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(94)

Unified Diff: pylib/gyp/msvs_emulation.py

Issue 1331463002: Make sure GYP supports compiling managed code. (Closed) Base URL: https://chromium.googlesource.com/external/gyp@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: pylib/gyp/msvs_emulation.py
diff --git a/pylib/gyp/msvs_emulation.py b/pylib/gyp/msvs_emulation.py
index c263cfa6d6c77dc670cb85e57c53515dbabe726d..30b4aa45aa1f39d438252e64e5da75e1df58a623 100644
--- a/pylib/gyp/msvs_emulation.py
+++ b/pylib/gyp/msvs_emulation.py
@@ -442,6 +442,9 @@ class MsvsSettings(object):
cl('FloatingPointModel',
map={'0': 'precise', '1': 'strict', '2': 'fast'}, prefix='/fp:',
default='0')
+ cl('CompileAsManaged',
+ map={'false': '', 'true': '/clr', 'Pure': '/clr:pure',
+ 'Safe': '/clr:safe', 'OldSyntax': '/clr:oldSyntax'})
scottmg 2015/09/04 17:16:41 VS2015 cl /? lists: /clr[:option] compile for com
cl('WholeProgramOptimization', map={'true': '/GL'})
cl('WarningLevel', prefix='/W')
cl('WarnAsError', map={'true': '/WX'})
« no previous file with comments | « no previous file | test/win/compiler-flags/compile-as-managed.cc » ('j') | test/win/compiler-flags/compile-as-managed.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698