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

Side by Side Diff: pylib/gyp/msvs_emulation.py

Issue 82703007: Support Visual C++ PGO in Ninja generator (Closed) Base URL: http://gyp.googlecode.com/svn/trunk/
Patch Set: Created 7 years 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | test/win/gyptest-link-ltcg.py » ('j') | test/win/gyptest-link-ltcg.py » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2012 Google Inc. All rights reserved. 1 # Copyright (c) 2012 Google Inc. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 """ 5 """
6 This module helps emulate Visual Studio 2008 behavior on top of other 6 This module helps emulate Visual Studio 2008 behavior on top of other
7 build systems, primarily ninja. 7 build systems, primarily ninja.
8 """ 8 """
9 9
10 import os 10 import os
(...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after
480 ld('TerminalServerAware', map={'1': ':NO', '2': ''}, prefix='/TSAWARE') 480 ld('TerminalServerAware', map={'1': ':NO', '2': ''}, prefix='/TSAWARE')
481 ld('LinkIncremental', map={'1': ':NO', '2': ''}, prefix='/INCREMENTAL') 481 ld('LinkIncremental', map={'1': ':NO', '2': ''}, prefix='/INCREMENTAL')
482 ld('BaseAddress', prefix='/BASE:') 482 ld('BaseAddress', prefix='/BASE:')
483 ld('FixedBaseAddress', map={'1': ':NO', '2': ''}, prefix='/FIXED') 483 ld('FixedBaseAddress', map={'1': ':NO', '2': ''}, prefix='/FIXED')
484 ld('RandomizedBaseAddress', 484 ld('RandomizedBaseAddress',
485 map={'1': ':NO', '2': ''}, prefix='/DYNAMICBASE') 485 map={'1': ':NO', '2': ''}, prefix='/DYNAMICBASE')
486 ld('DataExecutionPrevention', 486 ld('DataExecutionPrevention',
487 map={'1': ':NO', '2': ''}, prefix='/NXCOMPAT') 487 map={'1': ':NO', '2': ''}, prefix='/NXCOMPAT')
488 ld('OptimizeReferences', map={'1': 'NOREF', '2': 'REF'}, prefix='/OPT:') 488 ld('OptimizeReferences', map={'1': 'NOREF', '2': 'REF'}, prefix='/OPT:')
489 ld('EnableCOMDATFolding', map={'1': 'NOICF', '2': 'ICF'}, prefix='/OPT:') 489 ld('EnableCOMDATFolding', map={'1': 'NOICF', '2': 'ICF'}, prefix='/OPT:')
490 ld('LinkTimeCodeGeneration', map={'1': '/LTCG'}) 490 ld('LinkTimeCodeGeneration',
scottmg 2013/11/23 17:15:13 (Sorry, not at a Windows machine right now to chec
yukawa 2013/11/25 14:04:12 Yeah, I believe that the Librarian should continue
491 map={'1': '', '2': ':PGINSTRUMENT', '3': ':PGOPTIMIZE',
492 '4': ':PGUPDATE'},
493 prefix='/LTCG')
491 ld('IgnoreDefaultLibraryNames', prefix='/NODEFAULTLIB:') 494 ld('IgnoreDefaultLibraryNames', prefix='/NODEFAULTLIB:')
492 ld('ResourceOnlyDLL', map={'true': '/NOENTRY'}) 495 ld('ResourceOnlyDLL', map={'true': '/NOENTRY'})
493 ld('EntryPointSymbol', prefix='/ENTRY:') 496 ld('EntryPointSymbol', prefix='/ENTRY:')
494 ld('Profile', map={'true': '/PROFILE'}) 497 ld('Profile', map={'true': '/PROFILE'})
495 ld('LargeAddressAware', 498 ld('LargeAddressAware',
496 map={'1': ':NO', '2': ''}, prefix='/LARGEADDRESSAWARE') 499 map={'1': ':NO', '2': ''}, prefix='/LARGEADDRESSAWARE')
497 # TODO(scottmg): This should sort of be somewhere else (not really a flag). 500 # TODO(scottmg): This should sort of be somewhere else (not really a flag).
498 ld('AdditionalDependencies', prefix='') 501 ld('AdditionalDependencies', prefix='')
499 502
500 # If the base address is not specifically controlled, DYNAMICBASE should 503 # If the base address is not specifically controlled, DYNAMICBASE should
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
872 875
873 # To determine processor word size on Windows, in addition to checking 876 # To determine processor word size on Windows, in addition to checking
874 # PROCESSOR_ARCHITECTURE (which reflects the word size of the current 877 # PROCESSOR_ARCHITECTURE (which reflects the word size of the current
875 # process), it is also necessary to check PROCESSOR_ARCHITEW6432 (which 878 # process), it is also necessary to check PROCESSOR_ARCHITEW6432 (which
876 # contains the actual word size of the system when running thru WOW64). 879 # contains the actual word size of the system when running thru WOW64).
877 if ('64' in os.environ.get('PROCESSOR_ARCHITECTURE', '') or 880 if ('64' in os.environ.get('PROCESSOR_ARCHITECTURE', '') or
878 '64' in os.environ.get('PROCESSOR_ARCHITEW6432', '')): 881 '64' in os.environ.get('PROCESSOR_ARCHITEW6432', '')):
879 default_variables['MSVS_OS_BITS'] = 64 882 default_variables['MSVS_OS_BITS'] = 64
880 else: 883 else:
881 default_variables['MSVS_OS_BITS'] = 32 884 default_variables['MSVS_OS_BITS'] = 32
OLDNEW
« no previous file with comments | « no previous file | test/win/gyptest-link-ltcg.py » ('j') | test/win/gyptest-link-ltcg.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698