Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMake: add windows support to j9util #5270

Merged
merged 1 commit into from
Mar 27, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions runtime/util/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
################################################################################
# Copyright (c) 2017, 2018 IBM Corp. and others
# Copyright (c) 2017, 2019 IBM Corp. and others
#
# This program and the accompanying materials are made available under
# the terms of the Eclipse Public License 2.0 which accompanies this
Expand Down Expand Up @@ -104,11 +104,14 @@ add_library(j9util STATIC
${CMAKE_CURRENT_BINARY_DIR}/ut_j9vmutil.c
${CMAKE_CURRENT_BINARY_DIR}/ut_module.c
${CMAKE_CURRENT_BINARY_DIR}/ut_srphashtable.c

# TODO this is platform specific
linux/osinfo.c
)

if(OMR_OS_LINUX)
target_sources(j9util PRIVATE linux/osinfo.c)
elseif(OMR_OS_WINDOWS)
target_sources(j9util PRIVATE win32/openlibrary.c)
endif()

if(OMR_ARCH_X86)
target_sources(j9util
PRIVATE
Expand Down