Created
June 25, 2017 20:16
-
-
Save qwwdfsad/12d54867a70d84a155cf129ac923bbe0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required(VERSION 3.6) | |
project(hotspot) | |
set(CMAKE_CXX_STANDARD 98) | |
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_GNU_SOURCE \ | |
-D_REENTRANT \ | |
-DLINUX -DINCLUDE_SUFFIX_OS=_linux -DVM_LITTLE_ENDIAN \ | |
-DTARGET_COMPILER_gcc \ | |
-DAMD64 -DHOTSPOT_LIB_ARCH='amd64' -DINCLUDE_SUFFIX_CPU=_x86 -D_LP64 -DTARGET_ARCH_x86 \ | |
-DCOMPILER1 -DCOMPILER2") | |
include_directories( | |
src/share/vm | |
src/os/linux/vm | |
src/cpu/x86/vm | |
src/os_cpu/linux_x86/vm | |
src/share/vm/precompiled) | |
set(SOURCE_FILES | |
// CLion will generate ~6k lines of includes here automatically on hotspot project loading | |
) | |
add_executable(hotspot ${SOURCE_FILES}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment