public inbox for jit@gcc.gnu.org
 help / color / mirror / Atom feed
From: Petter Tomner <tomner@kth.se>
To: jit@gcc.gnu.org, stephan.dollberg@gmail.com
Subject: [QUESTION] Using host functions in AOT mode
Date: Wed, 11 Aug 2021 00:40:04 +0200	[thread overview]
Message-ID: <bcf7e9d7-c74c-58dd-1dc8-206da4b37d3c@kth.se> (raw)
In-Reply-To: <CAE4R7x1epzun5ROXO=LibQWx+8LpEkAw67r3=XizrRaPYsCMNg@mail.gmail.com>

Hi!

The docs are not updated since gcc_jit_context_add_driver_option() was 
added in that section I believe.

You can link with anything with gcc_jit_context_add_driver_option().

E.g.
gcc_jit_context_add_driver_option(ctxt, "obj.o")
or
gcc_jit_context_add_driver_option(ctxt, "-L.")
gcc_jit_context_add_driver_option(ctxt, "-lwhatever")

Regards

  reply	other threads:[~2021-08-10 22:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-14 17:32 Stephan Dollberg
2021-08-10 22:40 ` Petter Tomner [this message]
2021-08-11 20:11   ` Stephan Dollberg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bcf7e9d7-c74c-58dd-1dc8-206da4b37d3c@kth.se \
    --to=tomner@kth.se \
    --cc=jit@gcc.gnu.org \
    --cc=stephan.dollberg@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).