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

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

Issue 452073002: Unbreak gcmole bots. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 4 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 | « no previous file | no next file » | 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 end 91 end
92 92
93 local function MakeClangCommandLine(plugin, plugin_args, triple, arch_define) 93 local function MakeClangCommandLine(plugin, plugin_args, triple, arch_define)
94 if plugin_args then 94 if plugin_args then
95 for i = 1, #plugin_args do 95 for i = 1, #plugin_args do
96 plugin_args[i] = "-Xclang -plugin-arg-" .. plugin 96 plugin_args[i] = "-Xclang -plugin-arg-" .. plugin
97 .. " -Xclang " .. plugin_args[i] 97 .. " -Xclang " .. plugin_args[i]
98 end 98 end
99 plugin_args = " " .. table.concat(plugin_args, " ") 99 plugin_args = " " .. table.concat(plugin_args, " ")
100 end 100 end
101 return CLANG_BIN .. "/clang++ -c " 101 return CLANG_BIN .. "/clang++ -std=c++11 -c "
102 .. " -Xclang -load -Xclang " .. CLANG_PLUGINS .. "/libgcmole.so" 102 .. " -Xclang -load -Xclang " .. CLANG_PLUGINS .. "/libgcmole.so"
103 .. " -Xclang -plugin -Xclang " .. plugin 103 .. " -Xclang -plugin -Xclang " .. plugin
104 .. (plugin_args or "") 104 .. (plugin_args or "")
105 .. " -Xclang -triple -Xclang " .. triple 105 .. " -Xclang -triple -Xclang " .. triple
106 .. " -D" .. arch_define 106 .. " -D" .. arch_define
107 .. " -DENABLE_DEBUGGER_SUPPORT" 107 .. " -DENABLE_DEBUGGER_SUPPORT"
108 .. " -DV8_I18N_SUPPORT" 108 .. " -DV8_I18N_SUPPORT"
109 .. " -I./" 109 .. " -I./"
110 .. " -Ithird_party/icu/source/common" 110 .. " -Ithird_party/icu/source/common"
111 .. " -Ithird_party/icu/source/i18n" 111 .. " -Ithird_party/icu/source/i18n"
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 386
387 for _, arch in ipairs(ARCHS) do 387 for _, arch in ipairs(ARCHS) do
388 if not ARCHITECTURES[arch] then 388 if not ARCHITECTURES[arch] then
389 error ("Unknown arch: " .. arch) 389 error ("Unknown arch: " .. arch)
390 end 390 end
391 391
392 errors = SafeCheckCorrectnessForArch(arch, report) or errors 392 errors = SafeCheckCorrectnessForArch(arch, report) or errors
393 end 393 end
394 394
395 os.exit(errors and 1 or 0) 395 os.exit(errors and 1 or 0)
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698