swipelab_webp: the Windows build hook's cl.exe command exceeds the command-line limit, so banlu cannot build for Windows #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/2964-hook-command-length"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Tracker: #2964
The libwebp sources reach the compiler in a response file (
@libwebp_sources.rspin the hook's output directory), so the command line holds one path for them, whatever the source count or cache path. On Windows, native_toolchain_c 0.17.6 runscl.exethrough cmd.exe (runInShell), which caps a command at 8191 characters; the 109 sources by absolute path exceeded it. CBuilder already records every file under thelibwebpPathinclude dir as a dependency, so hook caching is unchanged.Verification:
be(Windows 11, MSVC 14.44), banlu 2d64c113,LOCALAPPDATAset to a path 7 characters longer than Local System's: without the change,flutter build windows --releasefails in build_hooks withThe command line is too long.; with it, it buildsapp.exeandswipelab_webp.dll, and thecl.execommand is 711 characters.dart run example/webp_test.dartbuilds the dylib through the response file (clang) and passes.Head:
8cbfb74cb5