Skip to content

Latest commit

 

History

History

updateclang

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

This directory contains files, script needed to update libclang binding in jextract code.

Steps to update libclang binding

  • remove the src/main/java/org/openjdk/jextract/clang/libclang folder
  • make sure jextract project is built
  • cd updateclang (this directory)
  • set PATH to point to directory where generated jextract tool lives
  • set LIBCLANG_HOME to point to the home of the LLVM distribution
  • run sh ./extract.sh

Manually update the following file:

File: Index_h.java

// Manual change to handle platform specific library name difference
static {
    // Manual change to handle platform specific library name difference
    String libName = System.getProperty("os.name").startsWith("Windows")? "libclang" : "clang";
    System.loadLibrary(libName);
}