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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 .. " -DV8_I18N_SUPPORT" |
107 .. " -Isrc" | 107 .. " -I./" |
108 .. " -Ithird_party/icu/source/common" | 108 .. " -Ithird_party/icu/source/common" |
109 .. " -Ithird_party/icu/source/i18n" | 109 .. " -Ithird_party/icu/source/i18n" |
110 end | 110 end |
111 | 111 |
112 function InvokeClangPluginForEachFile(filenames, cfg, func) | 112 function InvokeClangPluginForEachFile(filenames, cfg, func) |
113 local cmd_line = MakeClangCommandLine(cfg.plugin, | 113 local cmd_line = MakeClangCommandLine(cfg.plugin, |
114 cfg.plugin_args, | 114 cfg.plugin_args, |
115 cfg.triple, | 115 cfg.triple, |
116 cfg.arch_define) | 116 cfg.arch_define) |
117 for _, filename in ipairs(filenames) do | 117 for _, filename in ipairs(filenames) do |
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
384 | 384 |
385 for _, arch in ipairs(ARCHS) do | 385 for _, arch in ipairs(ARCHS) do |
386 if not ARCHITECTURES[arch] then | 386 if not ARCHITECTURES[arch] then |
387 error ("Unknown arch: " .. arch) | 387 error ("Unknown arch: " .. arch) |
388 end | 388 end |
389 | 389 |
390 errors = SafeCheckCorrectnessForArch(arch, report) or errors | 390 errors = SafeCheckCorrectnessForArch(arch, report) or errors |
391 end | 391 end |
392 | 392 |
393 os.exit(errors and 1 or 0) | 393 os.exit(errors and 1 or 0) |
OLD | NEW |