Skip to content

Instantly share code, notes, and snippets.

@jyukutyo
Last active May 13, 2022 17:11
Show Gist options
  • Save jyukutyo/de3a54eaeb5408b2016785543ba85b2e to your computer and use it in GitHub Desktop.
Save jyukutyo/de3a54eaeb5408b2016785543ba85b2e to your computer and use it in GitHub Desktop.
Build OpenJDK on CLion
cmake_minimum_required(VERSION 3.7)
project(hotspot)
include_directories(
src/hotspot/cpu
src/hotspot/os
src/hotspot/os_cpu
src/hotspot/share
src/hotspot/share/precompiled
src/hotspot/share/include
src/java.base/unix/native/include
src/java.base/share/native/include
)
file(GLOB_RECURSE SOURCE_FILES "*.cpp" "*.hpp" "*.c" "*.h")
add_executable(hotspot ${SOURCE_FILES})
@minhtran83
Copy link

Thanks for sharing. What OS have you used?

@jyukutyo
Copy link
Author

Hi. I've used macOS 10.12, 10.13, and 10.14.

@jumarko
Copy link

jumarko commented Feb 12, 2020

Thanks a lot!
I'm a C/CLion newbie so it might be a stupid question but it seems that one particular reference is unresolved and that is VM_Version in in Threads::create_vm - any idea why?

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment