Skip to content
This repository was archived by the owner on Mar 2, 2019. It is now read-only.

Commit 1760b11

Browse files
author
erikj
committed
8205942: Build failure on macosx after JDK-8189429
Reviewed-by: tbell, lancea
1 parent 145c3fb commit 1760b11

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

make/gensrc/Gensrc-jdk.hotspot.agent.gmk

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ SA_PROPERTIES := $(SUPPORT_OUTPUTDIR)/gensrc/jdk.hotspot.agent/sa.properties
3535
SA_BUILD_VERSION_PROP_NAME := "sun.jvm.hotspot.runtime.VM.saBuildVersion"
3636

3737
$(SA_PROPERTIES): $(call DependOnVariable, VERSION_STRING)
38-
$(MKDIR) -p $(@D)
38+
$(call MakeTargetDir)
3939
$(ECHO) "$(SA_BUILD_VERSION_PROP_NAME)=$(VERSION_STRING)" > $@
4040

4141
TARGETS += $(SA_PROPERTIES)
@@ -49,7 +49,9 @@ ifeq ($(OPENJDK_TARGET_OS), macosx)
4949
MACH_EXC_SERVER := $(MIG_OUTPUT_DIR)/mach_excServer.c
5050

5151
$(MACH_EXC_SERVER): $(SDKROOT)/usr/include/mach/mach_exc.defs
52-
$(MIG) -isysroot $(SDKROOT) -server $@ -user $(MACH_EXC_USER) \
52+
$(call MakeTargetDir)
53+
$(MIG) $(if $(SDKROOT), -isysroot $(SDKROOT)) \
54+
-server $@ -user $(MACH_EXC_USER) \
5355
-header $(MACH_EXC_HEADER) $(SDKROOT)/usr/include/mach/mach_exc.defs
5456

5557
TARGETS += $(MACH_EXC_SERVER)

0 commit comments

Comments
 (0)