public inbox for jit@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Marc Nieper-Wißkirchen" <marc.nieper+gnu@gmail.com>
To: Petter Tomner <tomner@kth.se>, David Malcolm <dmalcolm@redhat.com>
Cc: "Marc Nieper-Wißkirchen" <marc.nieper+gnu@gmail.com>,
	"jit@gcc.gnu.org" <jit@gcc.gnu.org>
Subject: Re: AOT compiling and libraries to link against
Date: Sun, 30 Jan 2022 16:57:37 +0100	[thread overview]
Message-ID: <CAEYrNrSfuYmvZ6L4UssyjAXMdFXKF3+C+52Tq4++7mBYZ-HsaQ@mail.gmail.com> (raw)
In-Reply-To: <717f3c2959b14722a69a9c75b7253200@kth.se>

Thank you, Petter!

I missed gcc_jit_context_add_driver_option (and just noticed
gcc_jit_context_add_command_line_option).

@David Malcolm <dmalcolm@redhat.com> The method add_driver_option is also
implemented in the C++ API, but not documented ([1]).

--

[1] https://gcc.gnu.org/onlinedocs/jit/cp/topics/contexts.html#options

Am Sa., 29. Jan. 2022 um 23:26 Uhr schrieb Petter Tomner <tomner@kth.se>:

> The docs are not synced with the addition of
> gcc_jit_context_add_driver_option,
> which allows linking.
>
> You can use:
>
> 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")
>
> for that.
>
> Regards,

      reply	other threads:[~2022-01-30 15:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-29 22:09 Marc Nieper-Wißkirchen
2022-01-29 22:26 ` SV: " Petter Tomner
2022-01-30 15:57   ` Marc Nieper-Wißkirchen [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=CAEYrNrSfuYmvZ6L4UssyjAXMdFXKF3+C+52Tq4++7mBYZ-HsaQ@mail.gmail.com \
    --to=marc.nieper+gnu@gmail.com \
    --cc=dmalcolm@redhat.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).