build: produce symbol map files on windows
authorAli Ijaz Sheikh <ofrobots@google.com>
Sat, 25 Jul 2015 00:59:14 +0000 (17:59 -0700)
committerAli Ijaz Sheikh <ofrobots@google.com>
Wed, 29 Jul 2015 16:36:25 +0000 (09:36 -0700)
This produces map files as part of the build on windows. The existence of
these files enable profiling and tick-processing using the --prof command
line.
See: https://github.com/nodejs/io.js/pull/2090#issuecomment-124746673

Map files are documented here:
https://msdn.microsoft.com/en-us/library/k7xkk3e2.aspx

PR-URL: https://github.com/nodejs/io.js/pull/2243
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
common.gypi

index 4c1b90b..871b9b4 100644 (file)
           }],
         ],
         'GenerateDebugInformation': 'true',
+        'GenerateMapFile': 'true', # /MAP
+        'MapExports': 'true', # /MAPINFO:EXPORTS
         'RandomizedBaseAddress': 2, # enable ASLR
         'DataExecutionPrevention': 2, # enable DEP
         'AllowIsolation': 'true',