OLD | NEW |
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 Loading... |
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 Loading... |
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) |
OLD | NEW |