Skip to content

Instantly share code, notes, and snippets.

@zhangw
Created September 17, 2019 12:14
Show Gist options
  • Select an option

  • Save zhangw/b8be042b9f8e0c82c246c6c7a446e71c to your computer and use it in GitHub Desktop.

Select an option

Save zhangw/b8be042b9f8e0c82c246c6c7a446e71c to your computer and use it in GitHub Desktop.
#!/bin/bash
export LANG=C
#export CC=gcc
export CC=clang
export COMPILER_WARNINGS_FATAL=false
export ALLOW_DOWNLOADS=true
export HOTSPOT_BUILD_JOBS=8
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home
export ALT_BOOTDIR=/Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home
export ALT_PARALLEL_COMPILE_JOBS=8
export SKIP_COMPARE_IMAGES=true
export USE_PRECOMPILED_HEADER=true
export INCREMENTAL_BUILD=true
export BUILD_LANGTOOLS=true
export BUILD_JAXP=false
export BUILD_JAXWS=false
export BUILD_CORBA=false
export BUILD_HOTSPOT=true
export BUILD_JDK=true
# 编译版本
export SKIP_DEBUG_BUILD=true
export SKIP_FASTDEBUG_BUILD=false
export DEBUG_NAME=debug
# 避开javaws和浏览器Java插件之类的部分的build
export BUILD_DEPLOY=false
export BUILD_INSTALL=false
# 加上产生调试信息时需要的 objcopy
export OBJCOPY=gobjcopy
export LFLAGS='-Xlinker -lc++'
export CXXFLAGS='-stdlib=libc++'
export USE_CLANG=true
export LP64=1
export ARCH_DATA_MODEL=64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment