Skip to content

Merge C++, ObjC language arguments#15766

Draft
kode54 wants to merge 1 commit into
mesonbuild:masterfrom
kode54:lang-followup
Draft

Merge C++, ObjC language arguments#15766
kode54 wants to merge 1 commit into
mesonbuild:masterfrom
kode54:lang-followup

Conversation

@kode54
Copy link
Copy Markdown

@kode54 kode54 commented May 3, 2026

...in Xcode build targets.

From the original author:

I ran into an issue trying to compile lc0 (Leela Chess Zero
engine) with Meson where a compiler option -DNO_PEXT was not
being passed to clang. This was because the lc0@exe target
had both cpp, objc languages and the latter language's project
arguments were overriding the cpp language options. I'm assuming
that since objc options are set as cpp options, the options for
both languages need to be merged. After doing this, the Xcode
build for lc0 succeeds.

Again, following up after the original submitter apparently rage-quit.

...in Xcode build targets.

From the original author:

    I ran into an issue trying to compile lc0 (Leela Chess Zero
    engine) with Meson where a compiler option -DNO_PEXT was not
    being passed to clang. This was because the lc0@exe target
    had both cpp, objc languages and the latter language's project
    arguments were overriding the cpp language options. I'm assuming
    that since objc options are set as cpp options, the options for
    both languages need to be merged. After doing this, the Xcode
    build for lc0 succeeds.

Co-authored-by: Shukant Pal <SukantK2002@outlook.com>
Signed-off-by: Christopher Snowhill <kode54@gmail.com>
@kode54 kode54 requested a review from jpakkane as a code owner May 3, 2026 05:19
@kode54 kode54 marked this pull request as draft May 3, 2026 05:26
@kode54
Copy link
Copy Markdown
Author

kode54 commented May 3, 2026

This may not be a correct approach. I noticed it paired with the other PR, but didn't test it first, since it looked so simple in design. I guess it's incorrect after all. I'll re-evaluate it later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant