-
-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP: meson on windows (clang.exe) #253
Conversation
This reverts commit 8370005.
…nda-forge-pinning 2023.09.13.19.41.36
…nda-forge-pinning 2023.09.14.15.14.58
…nda-forge-pinning 2023.09.19.10.11.25
…nda-forge-pinning 2023.09.19.16.03.16
…nda-forge-pinning 2023.09.21.23.09.50
Hi! This is the friendly automated conda-forge-linting service. I just wanted to let you know that I linted all conda-recipes in your PR ( |
@rgommers
|
Too bad. I think that this is simply a matter of the RSP format not working at all for def get_rsp_threshold() -> int:
'''Return a conservative estimate of the commandline size in bytes
above which a response file should be used. May be overridden for
debugging by setting environment variable MESON_RSP_THRESHOLD.'''
if mesonlib.is_windows():
# Usually 32k, but some projects might use cmd.exe,
# and that has a limit of 8k.
limit = 8192
else:
# On Linux, ninja always passes the commandline as a single
# big string to /bin/sh, and the kernel limits the size of a
# single argument; see MAX_ARG_STRLEN
limit = 131072
# Be conservative
limit = limit // 2
return int(os.environ.get('MESON_RSP_THRESHOLD', limit)) And here are link line lengths:
So probably this can be worked around by setting |
That sounds like an excellent analysis, but unfortunately it didn't seem to change anything... It seems that meson has metadata for the linker to advertise rsp compatibility, and it seems that just falls through to the default, which is set to always true on windows. I'm going to try patching that in conda-forge/meson-feedstock#86 |
That didn't seem to have any effect either 😑 |
Then I'm out of workaround ideas - I guess it needs a proper fix in Meson. Unfortunately I don't have a Windows machine at hand, and this isn't a debug-via-CI kinda problem. |
Version of #246 with vanilla clang (not the MSVC-compatible
clang-cl.exe
).