OLD | NEW |
1 # Copyright 2015 the V8 project authors. All rights reserved. | 1 # Copyright 2015 the V8 project authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 | 5 |
6 import os | 6 import os |
7 import os.path | 7 import os.path |
8 | 8 |
9 | 9 |
10 def GetNinjaOutputDirectory(v8_root, configuration=None): | 10 def GetNinjaOutputDirectory(v8_root, configuration=None): |
(...skipping 24 matching lines...) Expand all Loading... |
35 debug_mtime = 0 | 35 debug_mtime = 0 |
36 try: | 36 try: |
37 rel_mtime = os.path.getmtime(os.path.join(release_path, test_path)) | 37 rel_mtime = os.path.getmtime(os.path.join(release_path, test_path)) |
38 except os.error: | 38 except os.error: |
39 rel_mtime = 0 | 39 rel_mtime = 0 |
40 return rel_mtime >= debug_mtime | 40 return rel_mtime >= debug_mtime |
41 | 41 |
42 if is_release_newer('.ninja_log') or is_release_newer('.ninja_deps'): | 42 if is_release_newer('.ninja_log') or is_release_newer('.ninja_deps'): |
43 return release_path | 43 return release_path |
44 return debug_path | 44 return debug_path |
OLD | NEW |