# 国内 git clone https://github.com/openjdk/jdk.git
# 国外 git clone https://github.com/openjdk/jdk.git
# --disable-precompiled-headers 会避免后面生成的 compile_commands.json 文件错误配置 PCH 文件路径
bash configure --with-debug-level=fastdebug --disable-precompiled-headers # 基本不用担心系统缺少了什么工具,make 过程中会有很友好的工具缺失提示。甚至提供了安装命令。充分体现了 openjdk 厚重的历史沉淀。
make compile-commands