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

Side by Side Diff: tools/gcmole/gcmole.lua

Issue 7350014: Remove the ability to compile without logging and profiling (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed review comments Created 9 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « test/cctest/test-log-utils.cc ('k') | tools/gyp/v8.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 -- Copyright 2011 the V8 project authors. All rights reserved. 1 -- Copyright 2011 the V8 project authors. All rights reserved.
2 -- Redistribution and use in source and binary forms, with or without 2 -- Redistribution and use in source and binary forms, with or without
3 -- modification, are permitted provided that the following conditions are 3 -- modification, are permitted provided that the following conditions are
4 -- met: 4 -- met:
5 -- 5 --
6 -- * Redistributions of source code must retain the above copyright 6 -- * Redistributions of source code must retain the above copyright
7 -- notice, this list of conditions and the following disclaimer. 7 -- notice, this list of conditions and the following disclaimer.
8 -- * Redistributions in binary form must reproduce the above 8 -- * Redistributions in binary form must reproduce the above
9 -- copyright notice, this list of conditions and the following 9 -- copyright notice, this list of conditions and the following
10 -- disclaimer in the documentation and/or other materials provided 10 -- disclaimer in the documentation and/or other materials provided
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 for i = 1, #plugin_args do 90 for i = 1, #plugin_args do
91 plugin_args[i] = "-plugin-arg-" .. plugin .. " " .. plugin_args[i] 91 plugin_args[i] = "-plugin-arg-" .. plugin .. " " .. plugin_args[i]
92 end 92 end
93 plugin_args = " " .. table.concat(plugin_args, " ") 93 plugin_args = " " .. table.concat(plugin_args, " ")
94 end 94 end
95 return CLANG_BIN .. "/clang -cc1 -load " .. DIR .. "/libgcmole.so" 95 return CLANG_BIN .. "/clang -cc1 -load " .. DIR .. "/libgcmole.so"
96 .. " -plugin " .. plugin 96 .. " -plugin " .. plugin
97 .. (plugin_args or "") 97 .. (plugin_args or "")
98 .. " -triple " .. triple 98 .. " -triple " .. triple
99 .. " -D" .. arch_define 99 .. " -D" .. arch_define
100 .. " -DENABLE_VMSTATE_TRACKING"
101 .. " -DENABLE_LOGGING_AND_PROFILING"
102 .. " -DENABLE_DEBUGGER_SUPPORT" 100 .. " -DENABLE_DEBUGGER_SUPPORT"
103 .. " -Isrc" 101 .. " -Isrc"
104 end 102 end
105 103
106 function InvokeClangPluginForEachFile(filenames, cfg, func) 104 function InvokeClangPluginForEachFile(filenames, cfg, func)
107 local cmd_line = MakeClangCommandLine(cfg.plugin, 105 local cmd_line = MakeClangCommandLine(cfg.plugin,
108 cfg.plugin_args, 106 cfg.plugin_args,
109 cfg.triple, 107 cfg.triple,
110 cfg.arch_define) 108 cfg.arch_define)
111 109
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 367
370 for _, arch in ipairs(ARCHS) do 368 for _, arch in ipairs(ARCHS) do
371 if not ARCHITECTURES[arch] then 369 if not ARCHITECTURES[arch] then
372 error ("Unknown arch: " .. arch) 370 error ("Unknown arch: " .. arch)
373 end 371 end
374 372
375 errors = SafeCheckCorrectnessForArch(arch, report) or errors 373 errors = SafeCheckCorrectnessForArch(arch, report) or errors
376 end 374 end
377 375
378 os.exit(errors and 1 or 0) 376 os.exit(errors and 1 or 0)
OLDNEW
« no previous file with comments | « test/cctest/test-log-utils.cc ('k') | tools/gyp/v8.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698