Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/openj9
Path: blob/master/runtime/bcverify/CMakeLists.txt
5986 views
1
################################################################################
2
# Copyright (c) 2017, 2020 IBM Corp. and others
3
#
4
# This program and the accompanying materials are made available under
5
# the terms of the Eclipse Public License 2.0 which accompanies this
6
# distribution and is available at https://www.eclipse.org/legal/epl-2.0/
7
# or the Apache License, Version 2.0 which accompanies this distribution and
8
# is available at https://www.apache.org/licenses/LICENSE-2.0.
9
#
10
# This Source Code may also be made available under the following
11
# Secondary Licenses when the conditions for such availability set
12
# forth in the Eclipse Public License, v. 2.0 are satisfied: GNU
13
# General Public License, version 2 with the GNU Classpath
14
# Exception [1] and GNU General Public License, version 2 with the
15
# OpenJDK Assembly Exception [2].
16
#
17
# [1] https://www.gnu.org/software/classpath/license.html
18
# [2] http://openjdk.java.net/legal/assembly-exception.html
19
#
20
# SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 OR LicenseRef-GPL-2.0 WITH Assembly-exception
21
################################################################################
22
23
#TODO specify -O3 for zos
24
25
set(OMR_ENHANCED_WARNINGS OFF)
26
add_tracegen(j9bcverify.tdf)
27
28
j9vm_add_library(j9bcv STATIC
29
bcverify.c
30
classrelationships.c
31
clconstraints.c
32
rtverify.c
33
staticverify.c
34
vrfyconvert.c
35
vrfyhelp.c
36
37
${CMAKE_CURRENT_BINARY_DIR}/ut_j9bcverify.c
38
)
39
target_include_directories(j9bcv PRIVATE ${CMAKE_CURRENT_BINARY_DIR})
40
target_compile_definitions(j9dyn PRIVATE J9_INTERNAL_TO_VM)
41
42
target_link_libraries(j9bcv
43
PRIVATE
44
j9vm_interface
45
j9vm_gc_includes
46
47
j9verutil
48
j9util
49
j9utilcore
50
j9avl
51
j9hashtable
52
j9pool
53
j9thr
54
j9stackmap
55
j9shrcommon
56
)
57
58
# special handling bcverify.c to deal with ppcle64-specific crash when compiling with gcc 7.5
59
if(OMR_ARCH_POWER AND OMR_ENV_LITTLE_ENDIAN AND OMR_ENV_DATA64 AND OMR_OS_LINUX AND (OMR_TOOLCONFIG STREQUAL "gnu"))
60
set_source_files_properties(bcverify.c PROPERTIES COMPILE_FLAGS -O2)
61
endif()
62
63
64