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

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

Issue 148573005: A64: Synchronize with r16249. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 10 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 | « tools/gcmole/bootstrap.sh ('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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 plugin_args[i] = "-plugin-arg-" .. plugin .. " " .. plugin_args[i] 96 plugin_args[i] = "-plugin-arg-" .. plugin .. " " .. plugin_args[i]
97 end 97 end
98 plugin_args = " " .. table.concat(plugin_args, " ") 98 plugin_args = " " .. table.concat(plugin_args, " ")
99 end 99 end
100 return CLANG_BIN .. "/clang -cc1 -load " .. CLANG_PLUGINS .. "/libgcmole.so" 100 return CLANG_BIN .. "/clang -cc1 -load " .. CLANG_PLUGINS .. "/libgcmole.so"
101 .. " -plugin " .. plugin 101 .. " -plugin " .. plugin
102 .. (plugin_args or "") 102 .. (plugin_args or "")
103 .. " -triple " .. triple 103 .. " -triple " .. triple
104 .. " -D" .. arch_define 104 .. " -D" .. arch_define
105 .. " -DENABLE_DEBUGGER_SUPPORT" 105 .. " -DENABLE_DEBUGGER_SUPPORT"
106 .. " -DV8_I18N_SUPPORT"
106 .. " -Isrc" 107 .. " -Isrc"
108 .. " -Ithird_party/icu/source/common"
109 .. " -Ithird_party/icu/source/i18n"
107 end 110 end
108 111
109 function InvokeClangPluginForEachFile(filenames, cfg, func) 112 function InvokeClangPluginForEachFile(filenames, cfg, func)
110 local cmd_line = MakeClangCommandLine(cfg.plugin, 113 local cmd_line = MakeClangCommandLine(cfg.plugin,
111 cfg.plugin_args, 114 cfg.plugin_args,
112 cfg.triple, 115 cfg.triple,
113 cfg.arch_define) 116 cfg.arch_define)
114 for _, filename in ipairs(filenames) do 117 for _, filename in ipairs(filenames) do
115 log("-- %s", filename) 118 log("-- %s", filename)
116 local action = cmd_line .. " src/" .. filename .. " 2>&1" 119 local action = cmd_line .. " src/" .. filename .. " 2>&1"
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 375
373 for _, arch in ipairs(ARCHS) do 376 for _, arch in ipairs(ARCHS) do
374 if not ARCHITECTURES[arch] then 377 if not ARCHITECTURES[arch] then
375 error ("Unknown arch: " .. arch) 378 error ("Unknown arch: " .. arch)
376 end 379 end
377 380
378 errors = SafeCheckCorrectnessForArch(arch, report) or errors 381 errors = SafeCheckCorrectnessForArch(arch, report) or errors
379 end 382 end
380 383
381 os.exit(errors and 1 or 0) 384 os.exit(errors and 1 or 0)
OLDNEW
« no previous file with comments | « tools/gcmole/bootstrap.sh ('k') | tools/gyp/v8.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698