changeset 59336:664abc4e7063 foreign

8223009: clang standard headers are not copied to $JDK/conf/jextract if there are more than one clang versions Reviewed-by: jlaskey
author sundar
date Fri, 26 Apr 2019 18:27:32 +0530
parents af87462e8dd4
children 40e71d36d71d
files make/autoconf/lib-clang.m4
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/make/autoconf/lib-clang.m4	Fri Apr 26 08:03:40 2019 +0530
+++ b/make/autoconf/lib-clang.m4	Fri Apr 26 18:27:32 2019 +0530
@@ -58,7 +58,9 @@
       CLANG_LIB_PATH="$with_libclang/lib"
       CLANG_BIN_PATH="$with_libclang/bin"
       CLANG_INCLUDE_PATH="$with_libclang/include"
-      VER=`ls $with_libclang/lib/clang/`
+      # There may be more than one version of clang installed.
+      # Pick the last one if there are more than one versions.
+      VER=`ls $with_libclang/lib/clang/ | tail -n1`
       CLANG_INCLUDE_AUX_PATH="$with_libclang/lib/clang/$VER/include"
     fi