| 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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" |
| 107 end | 108 end |
| 108 | 109 |
| 109 function InvokeClangPluginForEachFile(filenames, cfg, func) | 110 function InvokeClangPluginForEachFile(filenames, cfg, func) |
| 110 local cmd_line = MakeClangCommandLine(cfg.plugin, | 111 local cmd_line = MakeClangCommandLine(cfg.plugin, |
| 111 cfg.plugin_args, | 112 cfg.plugin_args, |
| 112 cfg.triple, | 113 cfg.triple, |
| 113 cfg.arch_define) | 114 cfg.arch_define) |
| 114 for _, filename in ipairs(filenames) do | 115 for _, filename in ipairs(filenames) do |
| 115 log("-- %s", filename) | 116 log("-- %s", filename) |
| (...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 372 | 373 |
| 373 for _, arch in ipairs(ARCHS) do | 374 for _, arch in ipairs(ARCHS) do |
| 374 if not ARCHITECTURES[arch] then | 375 if not ARCHITECTURES[arch] then |
| 375 error ("Unknown arch: " .. arch) | 376 error ("Unknown arch: " .. arch) |
| 376 end | 377 end |
| 377 | 378 |
| 378 errors = SafeCheckCorrectnessForArch(arch, report) or errors | 379 errors = SafeCheckCorrectnessForArch(arch, report) or errors |
| 379 end | 380 end |
| 380 | 381 |
| 381 os.exit(errors and 1 or 0) | 382 os.exit(errors and 1 or 0) |
| OLD | NEW |