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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 local closed = pipe:close() | 178 local closed = pipe:close() |
179 if not (success and closed) then error("Failed to run: " .. action) end | 179 if not (success and closed) then error("Failed to run: " .. action) end |
180 end | 180 end |
181 end | 181 end |
182 | 182 |
183 ------------------------------------------------------------------------------- | 183 ------------------------------------------------------------------------------- |
184 -- GYP file parsing | 184 -- GYP file parsing |
185 | 185 |
186 local function ParseGYPFile() | 186 local function ParseGYPFile() |
187 local gyp = "" | 187 local gyp = "" |
188 local gyp_files = { "tools/gyp/v8.gyp", "test/cctest/cctest.gyp" } | 188 local gyp_files = { "src/v8.gyp", "test/cctest/cctest.gyp" } |
189 for i = 1, #gyp_files do | 189 for i = 1, #gyp_files do |
190 local f = assert(io.open(gyp_files[i]), "failed to open GYP file") | 190 local f = assert(io.open(gyp_files[i]), "failed to open GYP file") |
191 local t = f:read('*a') | 191 local t = f:read('*a') |
192 gyp = gyp .. t | 192 gyp = gyp .. t |
193 f:close() | 193 f:close() |
194 end | 194 end |
195 | 195 |
196 local result = {} | 196 local result = {} |
197 | 197 |
198 for condition, sources in | 198 for condition, sources in |
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
443 | 443 |
444 for _, arch in ipairs(ARCHS) do | 444 for _, arch in ipairs(ARCHS) do |
445 if not ARCHITECTURES[arch] then | 445 if not ARCHITECTURES[arch] then |
446 error ("Unknown arch: " .. arch) | 446 error ("Unknown arch: " .. arch) |
447 end | 447 end |
448 | 448 |
449 errors = SafeCheckCorrectnessForArch(arch, report) or errors | 449 errors = SafeCheckCorrectnessForArch(arch, report) or errors |
450 end | 450 end |
451 | 451 |
452 os.exit(errors and 1 or 0) | 452 os.exit(errors and 1 or 0) |
OLD | NEW |