8044797: Building with clang gives: fatal error: file '...' has been modified since the precompiled header was built
authorsla
Mon, 09 Jun 2014 11:03:09 +0200
changeset 25053 31552d34d362
parent 25052 66e77563d9e7
child 25054 8a12137a8422
8044797: Building with clang gives: fatal error: file '...' has been modified since the precompiled header was built Reviewed-by: dholmes, dcubed
hotspot/make/bsd/makefiles/vm.make
hotspot/make/linux/makefiles/vm.make
--- a/hotspot/make/bsd/makefiles/vm.make	Fri Jun 06 14:46:42 2014 +0200
+++ b/hotspot/make/bsd/makefiles/vm.make	Mon Jun 09 11:03:09 2014 +0200
@@ -295,6 +295,7 @@
 $(PRECOMPILED_HEADER):
 	$(QUIETLY) echo Generating precompiled header $@
 	$(QUIETLY) mkdir -p $(PRECOMPILED_HEADER_DIR)
+	$(QUIETLY) rm -f $@
 	$(QUIETLY) $(COMPILE.CXX) $(DEPFLAGS) -x c++-header $(PRECOMPILED_HEADER_SRC) -o $@ $(COMPILE_DONE)
 
 # making the library:
--- a/hotspot/make/linux/makefiles/vm.make	Fri Jun 06 14:46:42 2014 +0200
+++ b/hotspot/make/linux/makefiles/vm.make	Mon Jun 09 11:03:09 2014 +0200
@@ -290,6 +290,7 @@
 $(PRECOMPILED_HEADER):
 	$(QUIETLY) echo Generating precompiled header $@
 	$(QUIETLY) mkdir -p $(PRECOMPILED_HEADER_DIR)
+	$(QUIETLY) rm -f $@
 	$(QUIETLY) $(COMPILE.CXX) $(DEPFLAGS) -x c++-header $(PRECOMPILED_HEADER_SRC) -o $@ $(COMPILE_DONE)
 
 # making the library: