33 JVM_CFLAGS_FEATURES += -DCOMPILER1
34 else
35 JVM_EXCLUDE_PATTERNS += c1_ c1/
36 endif
37
38 ifeq ($(call check-jvm-feature, compiler2), true)
39 JVM_CFLAGS_FEATURES += -DCOMPILER2
40 JVM_SRC_DIRS += $(JVM_VARIANT_OUTPUTDIR)/gensrc/adfiles
41 else
42 JVM_EXCLUDES += opto libadt
43 JVM_EXCLUDE_FILES += bcEscapeAnalyzer.cpp ciTypeFlow.cpp
44 JVM_EXCLUDE_PATTERNS += c2_ runtime_ /c2/
45 endif
46
47 ifeq ($(call check-jvm-feature, zero), true)
48 JVM_CFLAGS_FEATURES += -DZERO -DCC_INTERP -DZERO_LIBARCH='"$(OPENJDK_TARGET_CPU_LEGACY_LIB)"' $(LIBFFI_CFLAGS)
49 JVM_LIBS_FEATURES += $(LIBFFI_LIBS)
50 ifeq ($(ENABLE_LIBFFI_BUNDLING), true)
51 JVM_LDFLAGS_FEATURES += $(call SET_EXECUTABLE_ORIGIN,/..)
52 endif
53 ifeq ($(call isTargetCpu, sparcv9), true)
54 BUILD_LIBJVM_EXTRA_FILES := $(TOPDIR)/src/hotspot/cpu/sparc/memset_with_concurrent_readers_sparc.cpp
55 endif
56 endif
57
58 ifeq ($(JVM_VARIANT), custom)
59 JVM_CFLAGS_FEATURES += -DVMTYPE=\"Custom\"
60 endif
61
62 ifeq ($(call check-jvm-feature, minimal), true)
63 JVM_CFLAGS_FEATURES += -DMINIMAL_JVM -DVMTYPE=\"Minimal\"
64 ifeq ($(call isTargetOs, linux), true)
65 # Override the default -g with a more liberal strip policy for the minimal JVM
66 JVM_STRIPFLAGS := --strip-unneeded
67 endif
68 endif
69
70 ifeq ($(call check-jvm-feature, dtrace), true)
71 JVM_CFLAGS_FEATURES += -DDTRACE_ENABLED
72 endif
73
74 ifeq ($(call check-jvm-feature, static-build), true)
75 JVM_CFLAGS_FEATURES += -DSTATIC_BUILD=1
|
33 JVM_CFLAGS_FEATURES += -DCOMPILER1
34 else
35 JVM_EXCLUDE_PATTERNS += c1_ c1/
36 endif
37
38 ifeq ($(call check-jvm-feature, compiler2), true)
39 JVM_CFLAGS_FEATURES += -DCOMPILER2
40 JVM_SRC_DIRS += $(JVM_VARIANT_OUTPUTDIR)/gensrc/adfiles
41 else
42 JVM_EXCLUDES += opto libadt
43 JVM_EXCLUDE_FILES += bcEscapeAnalyzer.cpp ciTypeFlow.cpp
44 JVM_EXCLUDE_PATTERNS += c2_ runtime_ /c2/
45 endif
46
47 ifeq ($(call check-jvm-feature, zero), true)
48 JVM_CFLAGS_FEATURES += -DZERO -DCC_INTERP -DZERO_LIBARCH='"$(OPENJDK_TARGET_CPU_LEGACY_LIB)"' $(LIBFFI_CFLAGS)
49 JVM_LIBS_FEATURES += $(LIBFFI_LIBS)
50 ifeq ($(ENABLE_LIBFFI_BUNDLING), true)
51 JVM_LDFLAGS_FEATURES += $(call SET_EXECUTABLE_ORIGIN,/..)
52 endif
53 endif
54
55 ifeq ($(JVM_VARIANT), custom)
56 JVM_CFLAGS_FEATURES += -DVMTYPE=\"Custom\"
57 endif
58
59 ifeq ($(call check-jvm-feature, minimal), true)
60 JVM_CFLAGS_FEATURES += -DMINIMAL_JVM -DVMTYPE=\"Minimal\"
61 ifeq ($(call isTargetOs, linux), true)
62 # Override the default -g with a more liberal strip policy for the minimal JVM
63 JVM_STRIPFLAGS := --strip-unneeded
64 endif
65 endif
66
67 ifeq ($(call check-jvm-feature, dtrace), true)
68 JVM_CFLAGS_FEATURES += -DDTRACE_ENABLED
69 endif
70
71 ifeq ($(call check-jvm-feature, static-build), true)
72 JVM_CFLAGS_FEATURES += -DSTATIC_BUILD=1
|