RFR: 7903284: jextract should infer platform specific include path for Mac OS

Sundararajan Athijegannathan sundararajan.athijegannathan at oracle.com
Tue Sep 6 03:42:55 UTC 2022


With -F, we still need to specify framework to be used by another option, right? Do you have a simple command line example usage of frameworks?

PS. jextract does support compiler_options.txt file (in the current dir) to pass compiler specific options not supported by jextract.

Thanks,
-Sundar
________________________________
From: Manuel Bleichenbacher <manuel.bleichenbacher at gmail.com>
Sent: 06 September 2022 03:04
To: Athijegannathan Sundararajan <sundar at openjdk.org>
Cc: jextract-dev at openjdk.org <jextract-dev at openjdk.org>
Subject: Re: RFR: 7903284: jextract should infer platform specific include path for Mac OS

That's a good addition. But it just stops short of a great addition.

Instead of just adding "-I/Applications/Xcode.app/..../MacOSX.sdk" to the clang command line, it would be much better to also add  "-F/Applications/Xcode.app/..../MacOSX.sdk/System/Library/Frameworks". That way, jextract would gain the ability to find header files of frameworks, a core feature of macOS development.


On Mon, Sep 5, 2022 at 6:45 PM Athijegannathan Sundararajan <sundar at openjdk.org<mailto:sundar at openjdk.org>> wrote:
Using xcrun --show-sdk-path to find the SDK installation path

-------------

Commit messages:
 - 7903284: jextract should infer platform specific include path for Mac OS

Changes: https://git.openjdk.org/jextract/pull/69/files
 Webrev: https://webrevs.openjdk.org/?repo=jextract&pr=69&range=00
  Issue: https://bugs.openjdk.org/browse/CODETOOLS-7903284
  Stats: 29 lines in 1 file changed: 29 ins; 0 del; 0 mod
  Patch: https://git.openjdk.org/jextract/pull/69.diff
  Fetch: git fetch https://git.openjdk.org/jextract pull/69/head:pull/69

PR: https://git.openjdk.org/jextract/pull/69
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/jextract-dev/attachments/20220906/a9291a0a/attachment.htm>


More information about the jextract-dev mailing list