Index: build/landmines.py |
diff --git a/build/landmines.py b/build/landmines.py |
index e1ce6f35d4ae45cc9907305d02cfc1e803a7ad12..a03486499bba4b055881804d24915d2f8db80fd1 100755 |
--- a/build/landmines.py |
+++ b/build/landmines.py |
@@ -44,12 +44,7 @@ |
if build_tool == 'xcode': |
ret = os.path.join(SRC_DIR, 'xcodebuild') |
elif build_tool in ['make', 'ninja', 'ninja-ios']: # TODO: Remove ninja-ios. |
- if ('CHROMIUM_OUT_DIR' not in os.environ and |
- 'output_dir' in landmine_utils.gyp_generator_flags()): |
- output_dir = landmine_utils.gyp_generator_flags()['output_dir'] |
- else: |
- output_dir = os.environ.get('CHROMIUM_OUT_DIR', 'out') |
- ret = os.path.join(SRC_DIR, output_dir) |
+ ret = os.path.join(SRC_DIR, os.environ.get('CHROMIUM_OUT_DIR', 'out')) |
else: |
raise NotImplementedError('Unexpected GYP_GENERATORS (%s)' % build_tool) |
return os.path.abspath(ret) |