Index: build/gyp_v8 |
diff --git a/build/gyp_v8 b/build/gyp_v8 |
index ddf88ce06873b370c7037e9aef1bb89fe1d78cdb..f2a60d1b2c8d381b780a89439b16f95d216d5cb7 100755 |
--- a/build/gyp_v8 |
+++ b/build/gyp_v8 |
@@ -159,6 +159,9 @@ if __name__ == '__main__': |
# Generate for the architectures supported on the given platform. |
gyp_args = list(args) |
if platform.system() == 'Linux': |
+ # Work around for crbug.com/331475. |
+ for f in glob.glob(os.path.join(v8_root, 'out', 'Makefile.*')): |
+ os.unlink(f) |
# --generator-output defines where the Makefile goes. |
gyp_args.append('--generator-output=out') |
# -Goutput_dir defines where the build output goes, relative to the |