corba/make/CommonCorba.gmk
author shade
Thu, 02 Oct 2014 17:13:31 +0400
changeset 27003 19617f4c9dd0
parent 22662 ddcb7ce5e63d
permissions -rw-r--r--
8059595: Verifier::verify is wasting time before is_eligible_for_verification check Summary: Do the check earlier. Reviewed-by: hseigel, kamg
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
14242
0c8f215ed72c 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
     1
#
22662
ddcb7ce5e63d 8026773: Failing compilation in Corba does not fail the build
erikj
parents: 21859
diff changeset
     2
# Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
14242
0c8f215ed72c 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0c8f215ed72c 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
     4
#
0c8f215ed72c 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
0c8f215ed72c 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
0c8f215ed72c 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
     7
# published by the Free Software Foundation.  Oracle designates this
0c8f215ed72c 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
0c8f215ed72c 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
     9
# by Oracle in the LICENSE file that accompanied this code.
0c8f215ed72c 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
    10
#
0c8f215ed72c 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
    11
# This code is distributed in the hope that it will be useful, but WITHOUT
0c8f215ed72c 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
    12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0c8f215ed72c 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
    13
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
0c8f215ed72c 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
    14
# version 2 for more details (a copy is included in the LICENSE file that
0c8f215ed72c 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
    15
# accompanied this code).
0c8f215ed72c 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
    16
#
0c8f215ed72c 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
    17
# You should have received a copy of the GNU General Public License version
0c8f215ed72c 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
    18
# 2 along with this work; if not, write to the Free Software Foundation,
0c8f215ed72c 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
    19
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0c8f215ed72c 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
    20
#
0c8f215ed72c 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
    21
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
0c8f215ed72c 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
    22
# or visit www.oracle.com if you need additional information or have any
0c8f215ed72c 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
    23
# questions.
0c8f215ed72c 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
    24
#
0c8f215ed72c 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
    25
22662
ddcb7ce5e63d 8026773: Failing compilation in Corba does not fail the build
erikj
parents: 21859
diff changeset
    26
################################################################################
14242
0c8f215ed72c 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
    27
# The Corba sources are old and generates a LOT of warnings.
20554
7967586cdef6 8001931: The new build system whitespace cleanup
ihse
parents: 15408
diff changeset
    28
# Disable these using Xlint, until someone cares to fix them.
7967586cdef6 8001931: The new build system whitespace cleanup
ihse
parents: 15408
diff changeset
    29
DISABLE_CORBA_WARNINGS := -Xlint:all,-deprecation,-unchecked,-serial,-fallthrough,-cast,-rawtypes,-static,-dep-ann
14242
0c8f215ed72c 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
    30
0c8f215ed72c 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
    31
# The "generate old bytecode" javac setup uses the new compiler to compile for the
0c8f215ed72c 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
    32
# boot jdk to generate tools that need to be run with the boot jdk.
0c8f215ed72c 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
    33
# Thus we force the target bytecode to the boot jdk bytecode.
20554
7967586cdef6 8001931: The new build system whitespace cleanup
ihse
parents: 15408
diff changeset
    34
$(eval $(call SetupJavaCompiler,GENERATE_OLDBYTECODE, \
7967586cdef6 8001931: The new build system whitespace cleanup
ihse
parents: 15408
diff changeset
    35
    JVM := $(JAVA), \
7967586cdef6 8001931: The new build system whitespace cleanup
ihse
parents: 15408
diff changeset
    36
    JAVAC := $(NEW_JAVAC), \
20921
lana
parents: 20920 20554
diff changeset
    37
    FLAGS := $(BOOT_JDK_SOURCETARGET) \
lana
parents: 20920 20554
diff changeset
    38
         -bootclasspath "$(BOOT_RTJAR)$(PATH_SEP)$(BOOT_TOOLSJAR)" \
lana
parents: 20920 20554
diff changeset
    39
         $(DISABLE_CORBA_WARNINGS), \
20554
7967586cdef6 8001931: The new build system whitespace cleanup
ihse
parents: 15408
diff changeset
    40
    SERVER_DIR := $(SJAVAC_SERVER_DIR), \
7967586cdef6 8001931: The new build system whitespace cleanup
ihse
parents: 15408
diff changeset
    41
    SERVER_JVM := $(SJAVAC_SERVER_JAVA)))
14242
0c8f215ed72c 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
    42
0c8f215ed72c 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
    43
# The "generate new bytecode" uses the new compiler to generate bytecode
0c8f215ed72c 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
    44
# for the new jdk that is being built. The code compiled by this setup
0c8f215ed72c 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
    45
# cannot necessarily be run with the boot jdk.
20554
7967586cdef6 8001931: The new build system whitespace cleanup
ihse
parents: 15408
diff changeset
    46
$(eval $(call SetupJavaCompiler,GENERATE_NEWBYTECODE, \
7967586cdef6 8001931: The new build system whitespace cleanup
ihse
parents: 15408
diff changeset
    47
    JVM := $(JAVA), \
7967586cdef6 8001931: The new build system whitespace cleanup
ihse
parents: 15408
diff changeset
    48
    JAVAC := $(NEW_JAVAC), \
7967586cdef6 8001931: The new build system whitespace cleanup
ihse
parents: 15408
diff changeset
    49
    FLAGS := -cp $(BOOT_TOOLSJAR) -XDignore.symbol.file=true $(DISABLE_CORBA_WARNINGS), \
7967586cdef6 8001931: The new build system whitespace cleanup
ihse
parents: 15408
diff changeset
    50
    SERVER_DIR := $(SJAVAC_SERVER_DIR), \
7967586cdef6 8001931: The new build system whitespace cleanup
ihse
parents: 15408
diff changeset
    51
    SERVER_JVM := $(SJAVAC_SERVER_JAVA)))
14242
0c8f215ed72c 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
    52
22662
ddcb7ce5e63d 8026773: Failing compilation in Corba does not fail the build
erikj
parents: 21859
diff changeset
    53
################################################################################