public inbox for jit@gcc.gnu.org
 help / color / mirror / Atom feed
From: Stephan Dollberg <stephan.dollberg@gmail.com>
To: Petter Tomner <tomner@kth.se>
Cc: jit@gcc.gnu.org
Subject: Re: [QUESTION] Using host functions in AOT mode
Date: Wed, 11 Aug 2021 21:11:30 +0100	[thread overview]
Message-ID: <CAE4R7x1tfeh4XY5BKxfr97asC6M4i88vZooQH0K3AjxTb_s6RA@mail.gmail.com> (raw)
In-Reply-To: <bcf7e9d7-c74c-58dd-1dc8-206da4b37d3c@kth.se>

Hi Petter,

Thanks! That's working great.

I'd update the docs but I am not really familiar with the gcc dev flow
so sombody else could probably do it a lot quicker.

Cheers,
Stephan

On Tue, 10 Aug 2021 at 23:40, Petter Tomner <tomner@kth.se> wrote:
>
> 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-11 20:11 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
2021-08-11 20:11   ` Stephan Dollberg [this message]

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=CAE4R7x1tfeh4XY5BKxfr97asC6M4i88vZooQH0K3AjxTb_s6RA@mail.gmail.com \
    --to=stephan.dollberg@gmail.com \
    --cc=jit@gcc.gnu.org \
    --cc=tomner@kth.se \
    /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).