< prev index next >

make/gensrc/GensrcVarHandles.gmk

Print this page

        

@@ -1,7 +1,7 @@
 #
-# Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 #
 # This code is free software; you can redistribute it and/or modify it
 # under the terms of the GNU General Public License version 2 only, as
 # published by the Free Software Foundation.  Oracle designates this

@@ -57,13 +57,12 @@
           $$(eval $1_type := Object)
         else
           $$(eval $1_type := $$$$(shell $(TR) '[:upper:]' '[:lower:]' <<< $$$$($1_Type)))
         endif
         $$(call MakeDir, $$(@D))
-        $(RM) $$@
         $(TOOL_SPP) -nel -K$$($1_type) -Dtype=$$($1_type) -DType=$$($1_Type) \
-            $$($1_ARGS) -i$$< -o$$@
+            $$($1_ARGS) < $$< > $$@
 
   GENSRC_VARHANDLES += $$($1_FILENAME)
 endef
 
 ################################################################################

@@ -146,15 +145,14 @@
     $1_ARGS += -KfloatingPoint
   endif
 
   $$($1_FILENAME): $(VARHANDLES_SRC_DIR)/X-VarHandleByteArrayView.java.template $(BUILD_TOOLS_JDK)
         $$(call MakeDir, $$(@D))
-        $(RM) $$@
         $(TOOL_SPP) -nel -K$$($1_type) \
             -Dtype=$$($1_type) -DType=$$($1_Type) -DBoxType=$$($1_BoxType) \
             -DrawType=$$($1_rawType) -DRawType=$$($1_RawType) -DRawBoxType=$$($1_RawBoxType) \
-            $$($1_ARGS) -i$$< -o$$@
+            $$($1_ARGS) < $$< > $$@
 
   GENSRC_VARHANDLES += $$($1_FILENAME)
 endef
 
 ################################################################################
< prev index next >