All of lore.kernel.org
 help / color / mirror / Atom feed
* configure: How to pass flags to the Objective-C compiler?
@ 2022-02-18 21:58 Joshua Seaton
  2022-02-18 22:14 ` Philippe Mathieu-Daudé via
  0 siblings, 1 reply; 5+ messages in thread
From: Joshua Seaton @ 2022-02-18 21:58 UTC (permalink / raw)
  To: qemu-devel

Hi all,

How does one pass Objective-C compilation flags (e.g., a sysroot
specification) when configuring/building? `configure` exposes
`--extra-cflags` and `--extra-cxxflags` for C/C++ compilation, but
there isn't an equivalent for Objective-C.

In my particular case, I'd like to specify a particular sysroot for a
macOS build.


Joshua.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: configure: How to pass flags to the Objective-C compiler?
  2022-02-18 21:58 configure: How to pass flags to the Objective-C compiler? Joshua Seaton
@ 2022-02-18 22:14 ` Philippe Mathieu-Daudé via
  2022-02-19 19:17   ` Joshua Seaton
  0 siblings, 1 reply; 5+ messages in thread
From: Philippe Mathieu-Daudé via @ 2022-02-18 22:14 UTC (permalink / raw)
  To: Joshua Seaton, qemu-devel

Hi Joshua,

On 18/2/22 22:58, Joshua Seaton wrote:
> Hi all,
> 
> How does one pass Objective-C compilation flags (e.g., a sysroot
> specification) when configuring/building? `configure` exposes
> `--extra-cflags` and `--extra-cxxflags` for C/C++ compilation, but
> there isn't an equivalent for Objective-C.

You can use this patch (which is going to be merged soon):
https://lore.kernel.org/qemu-devel/20220215080307.69550-3-f4bug@amsat.org/

> In my particular case, I'd like to specify a particular sysroot for a
> macOS build.

Regards,

Phil.



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: configure: How to pass flags to the Objective-C compiler?
  2022-02-18 22:14 ` Philippe Mathieu-Daudé via
@ 2022-02-19 19:17   ` Joshua Seaton
  2022-02-20 16:47     ` Paolo Bonzini
  0 siblings, 1 reply; 5+ messages in thread
From: Joshua Seaton @ 2022-02-19 19:17 UTC (permalink / raw)
  To: Philippe Mathieu-Daudé; +Cc: qemu-devel

Thanks, Philippe.
I was in luck that you already had this prepared.
My naive read of that patch is that it covers specification at the
levels of the configure and meson front-ends, but that it still does
not wire that up to the build (beyond the diagnostic `summary_info`
addition). Is that accurate? If so, will there be follow-up patches?
If not, could you clarify how this amounts to affecting Objective-C
compilation steps? The other references to `objc_args` I see in the
meson build only seem like they amount to kwarg whitelisting for
certain classes (but, then again, I don't yet understand how the meson
build works).


Joshua.

On Fri, Feb 18, 2022 at 2:14 PM Philippe Mathieu-Daudé <f4bug@amsat.org> wrote:
>
> Hi Joshua,
>
> On 18/2/22 22:58, Joshua Seaton wrote:
> > Hi all,
> >
> > How does one pass Objective-C compilation flags (e.g., a sysroot
> > specification) when configuring/building? `configure` exposes
> > `--extra-cflags` and `--extra-cxxflags` for C/C++ compilation, but
> > there isn't an equivalent for Objective-C.
>
> You can use this patch (which is going to be merged soon):
> https://lore.kernel.org/qemu-devel/20220215080307.69550-3-f4bug@amsat.org/
>
> > In my particular case, I'd like to specify a particular sysroot for a
> > macOS build.
>
> Regards,
>
> Phil.
>


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: configure: How to pass flags to the Objective-C compiler?
  2022-02-19 19:17   ` Joshua Seaton
@ 2022-02-20 16:47     ` Paolo Bonzini
  2022-02-23 16:21       ` Joshua Seaton
  0 siblings, 1 reply; 5+ messages in thread
From: Paolo Bonzini @ 2022-02-20 16:47 UTC (permalink / raw)
  To: Joshua Seaton, Philippe Mathieu-Daudé; +Cc: qemu-devel

On 2/19/22 20:17, Joshua Seaton wrote:
> Is that accurate? If so, will there be follow-up patches?
> If not, could you clarify how this amounts to affecting Objective-C
> compilation steps?

This entry in the machine file affects the compilation steps:

+  test -n "$objcc" && echo "objc_args = [$(meson_quote $OBJCFLAGS $EXTRA_OBJCFLAGS)]" >> $cross

Paolo


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: configure: How to pass flags to the Objective-C compiler?
  2022-02-20 16:47     ` Paolo Bonzini
@ 2022-02-23 16:21       ` Joshua Seaton
  0 siblings, 0 replies; 5+ messages in thread
From: Joshua Seaton @ 2022-02-23 16:21 UTC (permalink / raw)
  To: Paolo Bonzini; +Cc: Philippe Mathieu-Daudé, qemu-devel

> You can use this patch (which is going to be merged soon):
Any ETA on when this will merge?

> This entry in the machine file affects the compilation steps:
>
> +  test -n "$objcc" && echo "objc_args = [$(meson_quote $OBJCFLAGS $EXTRA_OBJCFLAGS)]" >> $cross
Great! I had naively assumed that there was more plumbing involved
than merely defining the variable`objc_args`.


Joshua.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-02-23 16:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-18 21:58 configure: How to pass flags to the Objective-C compiler? Joshua Seaton
2022-02-18 22:14 ` Philippe Mathieu-Daudé via
2022-02-19 19:17   ` Joshua Seaton
2022-02-20 16:47     ` Paolo Bonzini
2022-02-23 16:21       ` Joshua Seaton

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.