Advice on how to do DISABLED_WARNINGS in jdk8u-dev

Ali Ince ali.ince at gmail.com
Sun Jun 9 14:20:11 UTC 2019


Hi All,

I'm trying to get jdk8u to be built with VS2017.

This requires disabling several warnings for several libraries (as been 
done in later versions of the openjdk, like [1]) however jdk8u doesn't 
have the DISABLED_WARNINGS_$(TOOLCHAIN_TYPE) [2] argument support in 
SetupNativeCompilation target [3]. I have investigated the possibility 
of back-porting JDK-8074096, which first introduced DISABLED_WARNINGS 
into jdk9 but that seemed not very feasible.

I've already progressed with adding -Wd flags to CFLAGS_windows 
overrides in corresponding places but not sure if this would be the 
right approach to do this.

I will be grateful if someone could advise me on what approach I should 
proceed?

Best regards,

Ali

[1] 
http://hg.openjdk.java.net/jdk-updates/jdk11u/file/640251cdca05/make/lib/Awt2dLibraries.gmk#l519
[2] 
http://hg.openjdk.java.net/jdk-updates/jdk11u/file/640251cdca05/make/common/NativeCompilation.gmk#l381
[3] 
http://hg.openjdk.java.net/jdk8u/jdk8u-dev/file/f0f617923ceb/make/common/NativeCompilation.gmk#l135



More information about the build-dev mailing list