make/hotspot/lib/CompileJvm.gmk
author rwestberg
Fri, 05 Oct 2018 07:54:28 +0200
changeset 52022 804792ce736f
parent 51853 ec62d6cab037
child 52026 286389b60292
permissions -rw-r--r--
8210459: Add support for generating compile_commands.json Reviewed-by: erikj, ihse
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
37437
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
     1
#
49070
d7859531621b 8198751: Refactor SetupNativeCompilation to take NAME and TYPE
ihse
parents: 48608
diff changeset
     2
# Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.
37437
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
     4
#
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
     7
# published by the Free Software Foundation.  Oracle designates this
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
     9
# by Oracle in the LICENSE file that accompanied this code.
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    10
#
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    11
# This code is distributed in the hope that it will be useful, but WITHOUT
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    13
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    14
# version 2 for more details (a copy is included in the LICENSE file that
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    15
# accompanied this code).
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    16
#
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    17
# You should have received a copy of the GNU General Public License version
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    18
# 2 along with this work; if not, write to the Free Software Foundation,
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    19
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    20
#
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    21
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    22
# or visit www.oracle.com if you need additional information or have any
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    23
# questions.
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    24
#
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    25
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    26
# Include support files that will setup compiler flags due to the selected
49553
58cffb6ec13c 8201236: Straighten out dtrace build logic
ihse
parents: 49412
diff changeset
    27
# jvm feature set, specific file overrides, and general flags.
37437
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    28
include lib/JvmFeatures.gmk
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    29
include lib/JvmOverrideFiles.gmk
49553
58cffb6ec13c 8201236: Straighten out dtrace build logic
ihse
parents: 49412
diff changeset
    30
include lib/JvmFlags.gmk
37437
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    31
49553
58cffb6ec13c 8201236: Straighten out dtrace build logic
ihse
parents: 49412
diff changeset
    32
# Include support files that will setup DTRACE_EXTRA_OBJECT_FILES.
58cffb6ec13c 8201236: Straighten out dtrace build logic
ihse
parents: 49412
diff changeset
    33
include lib/JvmDtraceObjects.gmk
37437
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    34
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    35
################################################################################
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    36
# Setup compilation of the main Hotspot native library (libjvm).
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    37
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    38
JVM_OUTPUTDIR := $(JVM_VARIANT_OUTPUTDIR)/libjvm
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    39
JVM_MAPFILE := $(JVM_OUTPUTDIR)/mapfile
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    40
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    41
################################################################################
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    42
# Platform independent setup
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    43
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    44
JVM_LDFLAGS += \
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    45
    $(SHARED_LIBRARY_FLAGS) \
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    46
    $(JVM_LDFLAGS_FEATURES) \
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    47
    $(EXTRA_LDFLAGS) \
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    48
    #
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    49
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    50
JVM_LIBS += \
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    51
    $(JVM_LIBS_FEATURES) \
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    52
    #
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    53
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    54
# These files and directories are always excluded
48093
jwilhelm
parents: 47871 48090
diff changeset
    55
JVM_EXCLUDE_FILES += args.cc
37437
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    56
JVM_EXCLUDES += adlc
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    57
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    58
# Needed by vm_version.cpp
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    59
ifeq ($(OPENJDK_TARGET_CPU), x86_64)
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    60
  OPENJDK_TARGET_CPU_VM_VERSION := amd64
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    61
else ifeq ($(OPENJDK_TARGET_CPU), sparcv9)
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    62
  OPENJDK_TARGET_CPU_VM_VERSION := sparc
44411
8c642d0b237e 8177390: java -version does not differentiate between which port of AArch64 is used
neugens
parents: 43402
diff changeset
    63
else ifeq ($(HOTSPOT_TARGET_CPU_ARCH), arm)
8c642d0b237e 8177390: java -version does not differentiate between which port of AArch64 is used
neugens
parents: 43402
diff changeset
    64
  ifeq ($(OPENJDK_TARGET_CPU), aarch64)
8c642d0b237e 8177390: java -version does not differentiate between which port of AArch64 is used
neugens
parents: 43402
diff changeset
    65
    # This sets the Oracle Aarch64 port to use arm64
8c642d0b237e 8177390: java -version does not differentiate between which port of AArch64 is used
neugens
parents: 43402
diff changeset
    66
    # while the original Aarch64 port uses aarch64
8c642d0b237e 8177390: java -version does not differentiate between which port of AArch64 is used
neugens
parents: 43402
diff changeset
    67
    OPENJDK_TARGET_CPU_VM_VERSION := arm64
8c642d0b237e 8177390: java -version does not differentiate between which port of AArch64 is used
neugens
parents: 43402
diff changeset
    68
  endif
37437
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    69
else
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    70
  OPENJDK_TARGET_CPU_VM_VERSION := $(OPENJDK_TARGET_CPU)
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    71
endif
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    72
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    73
CFLAGS_VM_VERSION := \
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    74
    $(VERSION_CFLAGS) \
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    75
    -DHOTSPOT_VERSION_STRING='"$(VERSION_STRING)"' \
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    76
    -DDEBUG_LEVEL='"$(DEBUG_LEVEL)"' \
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    77
    -DHOTSPOT_BUILD_USER='"$(USERNAME)"' \
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    78
    -DHOTSPOT_VM_DISTRO='"$(HOTSPOT_VM_DISTRO)"' \
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    79
    -DCPU='"$(OPENJDK_TARGET_CPU_VM_VERSION)"' \
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    80
    #
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    81
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    82
################################################################################
51839
ab54a4d61d7f 8210988: Improved handling of compiler warnings in the build
ihse
parents: 50128
diff changeset
    83
# Disabled warnings
ab54a4d61d7f 8210988: Improved handling of compiler warnings in the build
ihse
parents: 50128
diff changeset
    84
51853
ec62d6cab037 8211029: Have a common set of enabled warnings for all native libraries
ihse
parents: 51839
diff changeset
    85
DISABLED_WARNINGS_gcc := extra parentheses comment unknown-pragmas address \
ec62d6cab037 8211029: Have a common set of enabled warnings for all native libraries
ihse
parents: 51839
diff changeset
    86
    delete-non-virtual-dtor char-subscripts array-bounds int-in-bool-context \
ec62d6cab037 8211029: Have a common set of enabled warnings for all native libraries
ihse
parents: 51839
diff changeset
    87
    ignored-qualifiers  missing-field-initializers implicit-fallthrough \
ec62d6cab037 8211029: Have a common set of enabled warnings for all native libraries
ihse
parents: 51839
diff changeset
    88
    empty-body strict-overflow sequence-point maybe-uninitialized \
ec62d6cab037 8211029: Have a common set of enabled warnings for all native libraries
ihse
parents: 51839
diff changeset
    89
    misleading-indentation
ec62d6cab037 8211029: Have a common set of enabled warnings for all native libraries
ihse
parents: 51839
diff changeset
    90
51839
ab54a4d61d7f 8210988: Improved handling of compiler warnings in the build
ihse
parents: 50128
diff changeset
    91
ifeq ($(call check-jvm-feature, zero), true)
51853
ec62d6cab037 8211029: Have a common set of enabled warnings for all native libraries
ihse
parents: 51839
diff changeset
    92
  DISABLED_WARNINGS_gcc += return-type switch
51839
ab54a4d61d7f 8210988: Improved handling of compiler warnings in the build
ihse
parents: 50128
diff changeset
    93
endif
ab54a4d61d7f 8210988: Improved handling of compiler warnings in the build
ihse
parents: 50128
diff changeset
    94
51853
ec62d6cab037 8211029: Have a common set of enabled warnings for all native libraries
ihse
parents: 51839
diff changeset
    95
DISABLED_WARNINGS_clang := tautological-compare deprecated-declarations \
ec62d6cab037 8211029: Have a common set of enabled warnings for all native libraries
ihse
parents: 51839
diff changeset
    96
    undefined-var-template sometimes-uninitialized unknown-pragmas \
ec62d6cab037 8211029: Have a common set of enabled warnings for all native libraries
ihse
parents: 51839
diff changeset
    97
    delete-non-virtual-dtor missing-braces char-subscripts \
ec62d6cab037 8211029: Have a common set of enabled warnings for all native libraries
ihse
parents: 51839
diff changeset
    98
    ignored-qualifiers missing-field-initializers mismatched-tags
51839
ab54a4d61d7f 8210988: Improved handling of compiler warnings in the build
ihse
parents: 50128
diff changeset
    99
51853
ec62d6cab037 8211029: Have a common set of enabled warnings for all native libraries
ihse
parents: 51839
diff changeset
   100
DISABLED_WARNINGS_solstudio := labelnotused hidef w_novirtualdescr inlafteruse \
ec62d6cab037 8211029: Have a common set of enabled warnings for all native libraries
ihse
parents: 51839
diff changeset
   101
    unknownpragma doubunder w_enumnotused w_toomanyenumnotused \
ec62d6cab037 8211029: Have a common set of enabled warnings for all native libraries
ihse
parents: 51839
diff changeset
   102
    wvarhidenmem wunreachable wnoretvalue notemsource
51839
ab54a4d61d7f 8210988: Improved handling of compiler warnings in the build
ihse
parents: 50128
diff changeset
   103
ab54a4d61d7f 8210988: Improved handling of compiler warnings in the build
ihse
parents: 50128
diff changeset
   104
DISABLED_WARNINGS_xlc := 1540-0216 1540-0198 1540-1090 1540-1639 1540-1088 \
ab54a4d61d7f 8210988: Improved handling of compiler warnings in the build
ihse
parents: 50128
diff changeset
   105
    1500-010
ab54a4d61d7f 8210988: Improved handling of compiler warnings in the build
ihse
parents: 50128
diff changeset
   106
ab54a4d61d7f 8210988: Improved handling of compiler warnings in the build
ihse
parents: 50128
diff changeset
   107
DISABLED_WARNINGS_microsoft :=
ab54a4d61d7f 8210988: Improved handling of compiler warnings in the build
ihse
parents: 50128
diff changeset
   108
ab54a4d61d7f 8210988: Improved handling of compiler warnings in the build
ihse
parents: 50128
diff changeset
   109
ab54a4d61d7f 8210988: Improved handling of compiler warnings in the build
ihse
parents: 50128
diff changeset
   110
ab54a4d61d7f 8210988: Improved handling of compiler warnings in the build
ihse
parents: 50128
diff changeset
   111
################################################################################
37437
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   112
# Platform specific setup
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   113
42664
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 41692
diff changeset
   114
# ARM source selection
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 41692
diff changeset
   115
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 41692
diff changeset
   116
ifeq ($(OPENJDK_TARGET_OS)-$(OPENJDK_TARGET_CPU), linux-arm)
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 41692
diff changeset
   117
  JVM_EXCLUDE_PATTERNS += arm_64
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 41692
diff changeset
   118
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 41692
diff changeset
   119
else ifeq ($(OPENJDK_TARGET_OS)-$(OPENJDK_TARGET_CPU), linux-aarch64)
43402
caa829a4272a 8004842: Unify values of boolean make variables set in configure to true/false
ihse
parents: 42664
diff changeset
   120
  # For 64-bit arm builds, we use the 64 bit hotspot/src/cpu/arm
42664
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 41692
diff changeset
   121
  # hotspot sources if HOTSPOT_TARGET_CPU_ARCH is set to arm.
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 41692
diff changeset
   122
  # Exclude the aarch64 and 32 bit arm files for this build.
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 41692
diff changeset
   123
  ifeq ($(HOTSPOT_TARGET_CPU_ARCH), arm)
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 41692
diff changeset
   124
    JVM_EXCLUDE_PATTERNS += arm_32 aarch64
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 41692
diff changeset
   125
  endif
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 41692
diff changeset
   126
endif
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 41692
diff changeset
   127
37437
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   128
ifneq ($(filter $(OPENJDK_TARGET_OS), linux macosx windows), )
47217
72e3ae9a25eb 8187444: Forest Consolidation: Make build work
erikj
parents: 47216
diff changeset
   129
  JVM_PRECOMPILED_HEADER := $(TOPDIR)/src/hotspot/share/precompiled/precompiled.hpp
37437
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   130
endif
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   131
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   132
ifeq ($(OPENJDK_TARGET_CPU), x86)
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   133
  JVM_EXCLUDE_PATTERNS += x86_64
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   134
else ifeq ($(OPENJDK_TARGET_CPU), x86_64)
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   135
  JVM_EXCLUDE_PATTERNS += x86_32
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   136
endif
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   137
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   138
# Inline assembly for solaris
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   139
ifeq ($(OPENJDK_TARGET_OS), solaris)
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   140
  ifeq ($(OPENJDK_TARGET_CPU), x86_64)
47217
72e3ae9a25eb 8187444: Forest Consolidation: Make build work
erikj
parents: 47216
diff changeset
   141
    JVM_CFLAGS += $(TOPDIR)/src/hotspot/os_cpu/solaris_x86/solaris_x86_64.il
37437
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   142
  else ifeq ($(OPENJDK_TARGET_CPU), sparcv9)
47217
72e3ae9a25eb 8187444: Forest Consolidation: Make build work
erikj
parents: 47216
diff changeset
   143
    JVM_CFLAGS += $(TOPDIR)/src/hotspot/os_cpu/solaris_sparc/solaris_sparc.il
37437
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   144
  endif
49678
fa26e7c6efb7 8199782: Fix compilation warnings detected by Solaris Developer Studio 12.6
gadams
parents: 49412
diff changeset
   145
  # Exclude warnings in devstudio 12.6
fa26e7c6efb7 8199782: Fix compilation warnings detected by Solaris Developer Studio 12.6
gadams
parents: 49412
diff changeset
   146
  ifeq ($(CC_VERSION_NUMBER), 5.15)
51839
ab54a4d61d7f 8210988: Improved handling of compiler warnings in the build
ihse
parents: 50128
diff changeset
   147
    DISABLED_WARNINGS_solstudio += SEC_ARR_OUTSIDE_BOUND_READ \
49678
fa26e7c6efb7 8199782: Fix compilation warnings detected by Solaris Developer Studio 12.6
gadams
parents: 49412
diff changeset
   148
      SEC_ARR_OUTSIDE_BOUND_WRITE
fa26e7c6efb7 8199782: Fix compilation warnings detected by Solaris Developer Studio 12.6
gadams
parents: 49412
diff changeset
   149
  endif
37437
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   150
endif
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   151
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   152
ifeq ($(OPENJDK_TARGET_OS)-$(OPENJDK_TARGET_CPU), solaris-sparcv9)
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   153
  ifeq ($(COMPILE_WITH_DEBUG_SYMBOLS), false)
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   154
    # NOTE: In the old build, we weirdly enough set -g/-g0 always, regardless
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   155
    # of if debug symbols were needed. Without it, compilation fails on
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   156
    # sparc! :-(
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   157
    JVM_CFLAGS += -g0
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   158
  endif
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   159
endif
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   160
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   161
ifeq ($(OPENJDK_TARGET_OS), windows)
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   162
  ifeq ($(OPENJDK_TARGET_CPU_BITS), 64)
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   163
    RC_DESC := 64-Bit$(SPACE)
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   164
  endif
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   165
  JVM_RCFLAGS += -D"HS_FILEDESC=$(HOTSPOT_VM_DISTRO) $(RC_DESC)$(JVM_VARIANT) VM"
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   166
endif
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   167
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   168
JVM_OPTIMIZATION ?= HIGHEST_JVM
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   169
41674
8ff2f216109b 8164120: The minimal VM should be stripped using --strip-unneeded
erikj
parents: 40010
diff changeset
   170
# Need to set JVM_STRIPFLAGS to the default value from SPEC since the STRIPFLAGS
8ff2f216109b 8164120: The minimal VM should be stripped using --strip-unneeded
erikj
parents: 40010
diff changeset
   171
# parameter to SetupNativeCompilation allows an empty value to override the
8ff2f216109b 8164120: The minimal VM should be stripped using --strip-unneeded
erikj
parents: 40010
diff changeset
   172
# default.
8ff2f216109b 8164120: The minimal VM should be stripped using --strip-unneeded
erikj
parents: 40010
diff changeset
   173
JVM_STRIPFLAGS ?= $(STRIPFLAGS)
8ff2f216109b 8164120: The minimal VM should be stripped using --strip-unneeded
erikj
parents: 40010
diff changeset
   174
37437
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   175
################################################################################
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   176
# Now set up the actual compilation of the main hotspot native library
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   177
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   178
$(eval $(call SetupNativeCompilation, BUILD_LIBJVM, \
49070
d7859531621b 8198751: Refactor SetupNativeCompilation to take NAME and TYPE
ihse
parents: 48608
diff changeset
   179
    NAME := jvm, \
41193
9e274c9c3047 8160630: libjimage.so and others should link statically to libgcc
erikj
parents: 40010
diff changeset
   180
    TOOLCHAIN := TOOLCHAIN_LINK_CXX, \
41277
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents: 41193
diff changeset
   181
    OUTPUT_DIR := $(JVM_LIB_OUTPUTDIR), \
37437
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   182
    SRC := $(JVM_SRC_DIRS), \
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   183
    EXCLUDES := $(JVM_EXCLUDES), \
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   184
    EXCLUDE_FILES := $(JVM_EXCLUDE_FILES), \
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   185
    EXCLUDE_PATTERNS := $(JVM_EXCLUDE_PATTERNS), \
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   186
    EXTRA_OBJECT_FILES := $(DTRACE_EXTRA_OBJECT_FILES), \
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   187
    CFLAGS := $(JVM_CFLAGS), \
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   188
    vm_version.cpp_CXXFLAGS := $(CFLAGS_VM_VERSION), \
48598
c7eea4b541d1 8189761: COMPANY_NAME, IMPLEMENTOR, BUNDLE_VENDOR, VENDOR, but no configure flag
simonis
parents: 48300
diff changeset
   189
    arguments.cpp_CXXFLAGS := $(CFLAGS_VM_VERSION), \
51839
ab54a4d61d7f 8210988: Improved handling of compiler warnings in the build
ihse
parents: 50128
diff changeset
   190
    DISABLED_WARNINGS_gcc := $(DISABLED_WARNINGS_gcc), \
ab54a4d61d7f 8210988: Improved handling of compiler warnings in the build
ihse
parents: 50128
diff changeset
   191
    DISABLED_WARNINGS_clang := $(DISABLED_WARNINGS_clang), \
49678
fa26e7c6efb7 8199782: Fix compilation warnings detected by Solaris Developer Studio 12.6
gadams
parents: 49412
diff changeset
   192
    DISABLED_WARNINGS_solstudio := $(DISABLED_WARNINGS_solstudio), \
51839
ab54a4d61d7f 8210988: Improved handling of compiler warnings in the build
ihse
parents: 50128
diff changeset
   193
    DISABLED_WARNINGS_xlc := $(DISABLED_WARNINGS_xlc), \
ab54a4d61d7f 8210988: Improved handling of compiler warnings in the build
ihse
parents: 50128
diff changeset
   194
    DISABLED_WARNINGS_microsoft := $(DISABLED_WARNINGS_microsoft), \
37437
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   195
    ASFLAGS := $(JVM_ASFLAGS), \
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   196
    LDFLAGS := $(JVM_LDFLAGS), \
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   197
    LIBS := $(JVM_LIBS), \
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   198
    OPTIMIZATION := $(JVM_OPTIMIZATION), \
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   199
    OBJECT_DIR := $(JVM_OUTPUTDIR)/objs, \
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   200
    MAPFILE := $(JVM_MAPFILE), \
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   201
    USE_MAPFILE_FOR_SYMBOLS := true, \
41674
8ff2f216109b 8164120: The minimal VM should be stripped using --strip-unneeded
erikj
parents: 40010
diff changeset
   202
    STRIPFLAGS := $(JVM_STRIPFLAGS), \
37437
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   203
    EMBED_MANIFEST := true, \
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   204
    RC_FLAGS := $(JVM_RCFLAGS), \
47217
72e3ae9a25eb 8187444: Forest Consolidation: Make build work
erikj
parents: 47216
diff changeset
   205
    VERSIONINFO_RESOURCE := $(TOPDIR)/src/hotspot/os/windows/version.rc, \
37437
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   206
    PRECOMPILED_HEADER := $(JVM_PRECOMPILED_HEADER), \
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   207
    PRECOMPILED_HEADER_EXCLUDE := $(JVM_PRECOMPILED_HEADER_EXCLUDE), \
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   208
))
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   209
50128
ea4e6d3dbf60 8202738: vm_version Abstract_VM_Version::internal_vm_info_string() returns same string for different incremental builds
erikj
parents: 49681
diff changeset
   210
# Always recompile vm_version.cpp if libjvm needs to be relinked. This ensures
ea4e6d3dbf60 8202738: vm_version Abstract_VM_Version::internal_vm_info_string() returns same string for different incremental builds
erikj
parents: 49681
diff changeset
   211
# that the internal vm version is updated as it relies on __DATE__ and __TIME__
ea4e6d3dbf60 8202738: vm_version Abstract_VM_Version::internal_vm_info_string() returns same string for different incremental builds
erikj
parents: 49681
diff changeset
   212
# macros.
ea4e6d3dbf60 8202738: vm_version Abstract_VM_Version::internal_vm_info_string() returns same string for different incremental builds
erikj
parents: 49681
diff changeset
   213
VM_VERSION_OBJ := $(JVM_OUTPUTDIR)/objs/vm_version$(OBJ_SUFFIX)
ea4e6d3dbf60 8202738: vm_version Abstract_VM_Version::internal_vm_info_string() returns same string for different incremental builds
erikj
parents: 49681
diff changeset
   214
$(VM_VERSION_OBJ): $(filter-out $(VM_VERSION_OBJ) $(JVM_MAPFILE), \
ea4e6d3dbf60 8202738: vm_version Abstract_VM_Version::internal_vm_info_string() returns same string for different incremental builds
erikj
parents: 49681
diff changeset
   215
    $(BUILD_LIBJVM_TARGET_DEPS))
ea4e6d3dbf60 8202738: vm_version Abstract_VM_Version::internal_vm_info_string() returns same string for different incremental builds
erikj
parents: 49681
diff changeset
   216
52022
804792ce736f 8210459: Add support for generating compile_commands.json
rwestberg
parents: 51853
diff changeset
   217
ifneq ($(GENERATE_COMPILE_COMMANDS_ONLY), true)
804792ce736f 8210459: Add support for generating compile_commands.json
rwestberg
parents: 51853
diff changeset
   218
  ifeq ($(OPENJDK_TARGET_OS), windows)
804792ce736f 8210459: Add support for generating compile_commands.json
rwestberg
parents: 51853
diff changeset
   219
    # It doesn't matter which jvm.lib file gets exported, but we need
804792ce736f 8210459: Add support for generating compile_commands.json
rwestberg
parents: 51853
diff changeset
   220
    # to pick just one.
804792ce736f 8210459: Add support for generating compile_commands.json
rwestberg
parents: 51853
diff changeset
   221
    ifeq ($(JVM_VARIANT), $(JVM_VARIANT_MAIN))
804792ce736f 8210459: Add support for generating compile_commands.json
rwestberg
parents: 51853
diff changeset
   222
      $(eval $(call SetupCopyFiles, COPY_JVM_LIB, \
804792ce736f 8210459: Add support for generating compile_commands.json
rwestberg
parents: 51853
diff changeset
   223
          DEST := $(LIB_OUTPUTDIR), \
804792ce736f 8210459: Add support for generating compile_commands.json
rwestberg
parents: 51853
diff changeset
   224
          FILES :=$(BUILD_LIBJVM_IMPORT_LIBRARY), \
804792ce736f 8210459: Add support for generating compile_commands.json
rwestberg
parents: 51853
diff changeset
   225
      ))
804792ce736f 8210459: Add support for generating compile_commands.json
rwestberg
parents: 51853
diff changeset
   226
      TARGETS += $(COPY_JVM_LIB)
804792ce736f 8210459: Add support for generating compile_commands.json
rwestberg
parents: 51853
diff changeset
   227
    endif
41277
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents: 41193
diff changeset
   228
  endif
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents: 41193
diff changeset
   229
endif
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents: 41193
diff changeset
   230
37437
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   231
# AIX warning explanation:
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   232
# 1500-010  : (W) WARNING in ...: Infinite loop.  Program may not stop.
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   233
#             There are several infinite loops in the vm, so better suppress.
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   234
# 1540-0198 : (W) The omitted keyword "private" is assumed for base class "...".
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   235
# 1540-0216 : (W) An expression of type .. cannot be converted to type ..
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   236
#             In hotspot this fires for functionpointer to pointer conversions
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   237
# 1540-1088 : (W) The exception specification is being ignored.
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   238
#             In hotspot this is caused by throw() in declaration of new() in nmethod.hpp.
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   239
# 1540-1090 : (I) The destructor of "..." might not be called.
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   240
# 1540-1639 : (I) The behavior of long type bit fields has changed ...
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   241
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   242
# Include mapfile generation. It relies on BUILD_LIBJVM_ALL_OBJS which is only
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   243
# defined after the above call to BUILD_LIBJVM. Mapfile will be generated
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   244
# after all object files are built, but before the jvm library is linked.
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   245
include lib/JvmMapfile.gmk
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   246
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   247
TARGETS += $(BUILD_LIBJVM)
49357
aaedb8343784 8198243: Add build time check for global operator new/delete in object files
erikj
parents: 49070
diff changeset
   248
aaedb8343784 8198243: Add build time check for global operator new/delete in object files
erikj
parents: 49070
diff changeset
   249
################################################################################
aaedb8343784 8198243: Add build time check for global operator new/delete in object files
erikj
parents: 49070
diff changeset
   250
# Hotspot disallows the use of global operators 'new' and 'delete'. This build
aaedb8343784 8198243: Add build time check for global operator new/delete in object files
erikj
parents: 49070
diff changeset
   251
# time check helps enforce this requirement. If you trigger this check and the
aaedb8343784 8198243: Add build time check for global operator new/delete in object files
erikj
parents: 49070
diff changeset
   252
# reference is not obvious from the source, GNU objdump can be used to help find
aaedb8343784 8198243: Add build time check for global operator new/delete in object files
erikj
parents: 49070
diff changeset
   253
# the reference if compiled with GCC:
aaedb8343784 8198243: Add build time check for global operator new/delete in object files
erikj
parents: 49070
diff changeset
   254
#
aaedb8343784 8198243: Add build time check for global operator new/delete in object files
erikj
parents: 49070
diff changeset
   255
# objdump -lrdSC <path/to/file.o>
aaedb8343784 8198243: Add build time check for global operator new/delete in object files
erikj
parents: 49070
diff changeset
   256
#
aaedb8343784 8198243: Add build time check for global operator new/delete in object files
erikj
parents: 49070
diff changeset
   257
# -C demangle
aaedb8343784 8198243: Add build time check for global operator new/delete in object files
erikj
parents: 49070
diff changeset
   258
# -d disassemble
aaedb8343784 8198243: Add build time check for global operator new/delete in object files
erikj
parents: 49070
diff changeset
   259
# -r print relocation entries, interspersed with the disassembly
aaedb8343784 8198243: Add build time check for global operator new/delete in object files
erikj
parents: 49070
diff changeset
   260
# -S print source code, intermixed with disassembly
aaedb8343784 8198243: Add build time check for global operator new/delete in object files
erikj
parents: 49070
diff changeset
   261
# -l include filenames and line numbers
aaedb8343784 8198243: Add build time check for global operator new/delete in object files
erikj
parents: 49070
diff changeset
   262
#
aaedb8343784 8198243: Add build time check for global operator new/delete in object files
erikj
parents: 49070
diff changeset
   263
# Search the output for the operator(s) of interest, to see where they are
aaedb8343784 8198243: Add build time check for global operator new/delete in object files
erikj
parents: 49070
diff changeset
   264
# referenced.
aaedb8343784 8198243: Add build time check for global operator new/delete in object files
erikj
parents: 49070
diff changeset
   265
52022
804792ce736f 8210459: Add support for generating compile_commands.json
rwestberg
parents: 51853
diff changeset
   266
ifneq ($(GENERATE_COMPILE_COMMANDS_ONLY), true)
804792ce736f 8210459: Add support for generating compile_commands.json
rwestberg
parents: 51853
diff changeset
   267
  ifneq ($(filter $(TOOLCHAIN_TYPE), gcc clang solstudio), )
49357
aaedb8343784 8198243: Add build time check for global operator new/delete in object files
erikj
parents: 49070
diff changeset
   268
52022
804792ce736f 8210459: Add support for generating compile_commands.json
rwestberg
parents: 51853
diff changeset
   269
    DEMANGLED_REGEXP := [^:]operator (new|delete)
49357
aaedb8343784 8198243: Add build time check for global operator new/delete in object files
erikj
parents: 49070
diff changeset
   270
52022
804792ce736f 8210459: Add support for generating compile_commands.json
rwestberg
parents: 51853
diff changeset
   271
    # Running c++filt to find offending symbols in all files is too expensive,
804792ce736f 8210459: Add support for generating compile_commands.json
rwestberg
parents: 51853
diff changeset
   272
    # especially on Solaris, so use mangled names when looking for symbols.
804792ce736f 8210459: Add support for generating compile_commands.json
rwestberg
parents: 51853
diff changeset
   273
    # Save the demangling for when something is actually found.
804792ce736f 8210459: Add support for generating compile_commands.json
rwestberg
parents: 51853
diff changeset
   274
    ifeq ($(TOOLCHAIN_TYPE), solstudio)
804792ce736f 8210459: Add support for generating compile_commands.json
rwestberg
parents: 51853
diff changeset
   275
      MANGLED_SYMS := \
804792ce736f 8210459: Add support for generating compile_commands.json
rwestberg
parents: 51853
diff changeset
   276
          __1c2n6FL_pv_ \
804792ce736f 8210459: Add support for generating compile_commands.json
rwestberg
parents: 51853
diff changeset
   277
          __1c2N6FL_pv_ \
804792ce736f 8210459: Add support for generating compile_commands.json
rwestberg
parents: 51853
diff changeset
   278
          __1c2k6Fpv_v_ \
804792ce736f 8210459: Add support for generating compile_commands.json
rwestberg
parents: 51853
diff changeset
   279
          __1c2K6Fpv_v_ \
804792ce736f 8210459: Add support for generating compile_commands.json
rwestberg
parents: 51853
diff changeset
   280
          #
804792ce736f 8210459: Add support for generating compile_commands.json
rwestberg
parents: 51853
diff changeset
   281
      UNDEF_PATTERN := UNDEF
804792ce736f 8210459: Add support for generating compile_commands.json
rwestberg
parents: 51853
diff changeset
   282
    else
804792ce736f 8210459: Add support for generating compile_commands.json
rwestberg
parents: 51853
diff changeset
   283
      MANGLED_SYMS := \
804792ce736f 8210459: Add support for generating compile_commands.json
rwestberg
parents: 51853
diff changeset
   284
          _ZdaPv \
804792ce736f 8210459: Add support for generating compile_commands.json
rwestberg
parents: 51853
diff changeset
   285
          _ZdlPv \
804792ce736f 8210459: Add support for generating compile_commands.json
rwestberg
parents: 51853
diff changeset
   286
          _Znam \
804792ce736f 8210459: Add support for generating compile_commands.json
rwestberg
parents: 51853
diff changeset
   287
          _Znwm \
804792ce736f 8210459: Add support for generating compile_commands.json
rwestberg
parents: 51853
diff changeset
   288
          #
804792ce736f 8210459: Add support for generating compile_commands.json
rwestberg
parents: 51853
diff changeset
   289
      UNDEF_PATTERN := ' U '
804792ce736f 8210459: Add support for generating compile_commands.json
rwestberg
parents: 51853
diff changeset
   290
    endif
804792ce736f 8210459: Add support for generating compile_commands.json
rwestberg
parents: 51853
diff changeset
   291
804792ce736f 8210459: Add support for generating compile_commands.json
rwestberg
parents: 51853
diff changeset
   292
    define SetupOperatorNewDeleteCheck
804792ce736f 8210459: Add support for generating compile_commands.json
rwestberg
parents: 51853
diff changeset
   293
        $1.op_check: $1
804792ce736f 8210459: Add support for generating compile_commands.json
rwestberg
parents: 51853
diff changeset
   294
	  if [ -n "`$(NM) $$< | $(GREP) $(addprefix -e , $(MANGLED_SYMS)) \
804792ce736f 8210459: Add support for generating compile_commands.json
rwestberg
parents: 51853
diff changeset
   295
	      | $(GREP) $(UNDEF_PATTERN)`" ]; then \
804792ce736f 8210459: Add support for generating compile_commands.json
rwestberg
parents: 51853
diff changeset
   296
	    $(ECHO) "$$<: Error: Use of global operators new and delete is not allowed in Hotspot:"; \
804792ce736f 8210459: Add support for generating compile_commands.json
rwestberg
parents: 51853
diff changeset
   297
	    $(NM) $$< | $(CXXFILT) | $(EGREP) '$(DEMANGLED_REGEXP)' | $(GREP) $(UNDEF_PATTERN); \
804792ce736f 8210459: Add support for generating compile_commands.json
rwestberg
parents: 51853
diff changeset
   298
	    $(ECHO) "See: $(TOPDIR)/make/hotspot/lib/CompileJvm.gmk"; \
804792ce736f 8210459: Add support for generating compile_commands.json
rwestberg
parents: 51853
diff changeset
   299
	    exit 1; \
804792ce736f 8210459: Add support for generating compile_commands.json
rwestberg
parents: 51853
diff changeset
   300
	  fi
804792ce736f 8210459: Add support for generating compile_commands.json
rwestberg
parents: 51853
diff changeset
   301
	  $(TOUCH) $$@
804792ce736f 8210459: Add support for generating compile_commands.json
rwestberg
parents: 51853
diff changeset
   302
804792ce736f 8210459: Add support for generating compile_commands.json
rwestberg
parents: 51853
diff changeset
   303
      TARGETS += $1.op_check
804792ce736f 8210459: Add support for generating compile_commands.json
rwestberg
parents: 51853
diff changeset
   304
    endef
804792ce736f 8210459: Add support for generating compile_commands.json
rwestberg
parents: 51853
diff changeset
   305
804792ce736f 8210459: Add support for generating compile_commands.json
rwestberg
parents: 51853
diff changeset
   306
    $(foreach o, $(BUILD_LIBJVM_ALL_OBJS), $(eval $(call SetupOperatorNewDeleteCheck,$o)))
49357
aaedb8343784 8198243: Add build time check for global operator new/delete in object files
erikj
parents: 49070
diff changeset
   307
  endif
aaedb8343784 8198243: Add build time check for global operator new/delete in object files
erikj
parents: 49070
diff changeset
   308
endif