commit | c810ae1dad13ebcf88534a29a67f15ab654319ef | [log] [tgz] |
---|---|---|
author | Campbell Jones <git@serebit.com> | Sat Dec 18 21:50:20 2021 -0500 |
committer | Colin Cross <ccross@android.com> | Wed Nov 02 21:37:57 2022 -0700 |
tree | 1841aae37ce4ade2fa5d66d0d502a23d117bdd11 | |
parent | 2240a49110dbadaf3a27d7794597d34a278948fa [diff] |
8229258: Backport patch from JDK 14 to allow building with Clang 13 This patch backports changes from JDK14 commit ae5615c6142a4dc0d9033462f4880d7b3c127e26. It does not rename the class to markWord as the original patch does, but instead converts markOop to a markWord equivalent in-place. This patch allows the JDK to be built with Clang 13, as it avoids undefined behavior. See here: https://bugs.openjdk.java.net/browse/JDK-8229258 Bug: 197273045 Test: builds Change-Id: Ie7501cf66eb03e4bc5f30ea4fb0af9fd8fe16d38
JetBrains Runtime is a fork of OpenJDK available for Windows, Mac OS X, and Linux. It includes a number enhancements in font rendering, HiDPI support, ligatures, performance improvements, and bugfixes.
Download the latest releases of JetBrains Runtime to use with JetBrains IDEs. The full list can be found on the releases page.
IDE Version | Latest JBR | Date Released |
---|---|---|
2022.1 | 11_0_14_1-b2043.25 | 30-Mar-2022 |
2021.3 | 11_0_14_1-b1751.46 | 21-Feb-2022 |
2021.2 | 11_0_13-b1504.49 | 15-Nov-2021 |
2021.1 | 11.0.11+9-b1341.60 | 15-Jun-2021 |
2020.3 | 11_0_11-b1145.115 | 21-Jun-2021 |
git config --global core.autocrlf input git clone git@github.com:JetBrains/JetBrainsRuntime.git
git config --global core.autocrlf false git clone git@github.com:JetBrains/JetBrainsRuntime.git
Here are quick per-platform instructions for those who can't wait to get started. Please refer to OpenJDK build docs for in-depth coverage of all the details.
TIP: To get a preliminary report of what's missing, run
./configure
and check its output. It would usually have a meaningful advice on how to solve the problem.
Create a container:
$ cd jb/project/docker $ docker build . ... Successfully built 942ea9900054
Run these commands in the new container:
$ docker run -v `pwd`../../../../:/JetBrainsRuntime -it 942ea9900054 # cd /JetBrainsRuntime # sh ./configure # make images CONF=linux-x86_64-normal-server-release
Install the necessary tools, libraries, and headers with:
$ sudo apt-get install autoconf make build-essential libx11-dev libxext-dev libxrender-dev libxtst-dev \ libxt-dev libxrandr-dev libcups2-dev libfontconfig1-dev libasound2-dev \ openjdk-11-jdk
Then run the following:
$ cd JetBrainsRuntime $ sh ./configure --disable-warnings-as-errors $ make images
autoconf
, binutils
, cpio
, diffutils
, file
, gawk
, gcc-core
, make
, m4
, unzip
, zip
.From the command line:
"c:\Program Files (x86)\Microsoft Visual Studio 15.0\VC\vcvarsall.bat" amd64 c:\cygwin64\bin\mintty.exe /usr/bin/bash -l
The first command sets up environment variables, the second starts a Cygwin shell with the proper environment.
In the Cygwin shell:
$ cd JetBrainsRuntime $ bash configure --enable-option-checking=fatal --with-toolchain-version=2015 \ --with-boot-jdk="/cygdrive/c/Program Files/Java/jdk-11.0.5" --disable-warnings-as-errors $ make images
Install the following:
From the command line:
$ cd JetBrainsRuntime $ sh ./configure --prefix=$(pwd)/build --disable-warnings-as-errors $ make images
You can use CLion to develop native parts of the JetBrains Runtime and IntelliJ IDEA for the parts written in Java. Both require projects to be created.
Run
$ make compile-commands
in the git root and open the resulting build/.../compile_commands.json
file as a project. Then use Tools | Compilation Database | Change Project Root
to point to git root of this repository.
See also this detailed step-by-step tutorial for all platforms: How to develop OpenJDK with CLion.
Run
$ sh ./bin/idea.sh
in the git root to generate project files (add --help
for options). Then open the git root directory as a project in IDEA.
We are happy to receive your pull requests! Before you submit one, please sign our Contributor License Agreement (CLA).