Skip to content

Use a file to pass arguments to cygpath - #152

Merged
dra27 merged 1 commit into
ocaml:masterfrom
punchagan:cygpath-file-args
Apr 1, 2025
Merged

dra27 merged 1 commit into
ocaml:masterfrom
punchagan:cygpath-file-args

Conversation

@punchagan

Copy link
Copy Markdown
Contributor

When linking a fairly large OCaml project in Windows, I run into an 'argument list too long' error when trying to resolve filenames in build_dll. This commit switches to using a file to pass a long arguments list to cygpath, similar to our use of response files.

See also #151

Comment thread reloc.ml Resolved

@dra27 dra27 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As with #151, sorry also for the slow review! I think I'd prefer to gate this strictly for the native Windows build of flexlink.exe and the argument to --file should be quoted.

Comment thread reloc.ml Resolved
Comment thread reloc.ml Resolved
Comment thread reloc.ml Resolved
Comment thread reloc.ml Resolved
Comment thread reloc.ml Resolved
@punchagan
punchagan force-pushed the cygpath-file-args branch 2 times, most recently from 7b789ee to 8fce723 Compare March 31, 2025 11:28
@punchagan

Copy link
Copy Markdown
Contributor Author

As with #151, sorry also for the slow review! I think I'd prefer to gate this strictly for the native Windows build of flexlink.exe and the argument to --file should be quoted.

Thank you for taking the time to carefully review this PR, and your helpful suggestions! I've pushed changes with your suggestions and updated the CHANGES file.

When linking a fairly large OCaml project in Windows, I run into an
'argument list too long' error when trying to resolve filenames in
`build_dll`. This commit switches to using a file to pass a long
arguments list to cygpath, similar to our use of response files.

@dra27 dra27 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@dra27
dra27 merged commit 0a385d5 into ocaml:master Apr 1, 2025
@punchagan
punchagan deleted the cygpath-file-args branch April 1, 2025 12:56
semgrep-ci Bot pushed a commit to semgrep/semgrep that referenced this pull request Dec 19, 2025
Seems like this workaround isn't needed as both
             - ocaml/flexdll#151
             - ocaml/flexdll#152
have been merged and release sometime ago.

Test plan: CI + CI in
https://github.com/semgrep/semgrep/actions/runs/20310940953?pr=11381

synced from Pro a5ece9662f81c8f261a772cdaa11d6bef57d5830
semgrep-ci Bot pushed a commit to semgrep/semgrep that referenced this pull request Dec 22, 2025
Seems like this workaround isn't needed as both
             - ocaml/flexdll#151
             - ocaml/flexdll#152
have been merged and release sometime ago.

Test plan: CI + CI in
https://github.com/semgrep/semgrep/actions/runs/20310940953?pr=11381

synced from Pro a5ece9662f81c8f261a772cdaa11d6bef57d5830
semgrep-ci Bot pushed a commit to semgrep/semgrep that referenced this pull request Dec 22, 2025
Seems like this workaround isn't needed as both
             - ocaml/flexdll#151
             - ocaml/flexdll#152
have been merged and release sometime ago.

Test plan: CI + CI in
https://github.com/semgrep/semgrep/actions/runs/20310940953?pr=11381

synced from Pro a5ece9662f81c8f261a772cdaa11d6bef57d5830
semgrep-ci Bot pushed a commit to semgrep/semgrep that referenced this pull request Dec 22, 2025
Seems like this workaround isn't needed as both
             - ocaml/flexdll#151
             - ocaml/flexdll#152
have been merged and release sometime ago.

Test plan: CI + CI in
https://github.com/semgrep/semgrep/actions/runs/20310940953?pr=11381

synced from Pro a5ece9662f81c8f261a772cdaa11d6bef57d5830
yosefAlsuhaibani added a commit to semgrep/semgrep that referenced this pull request Dec 22, 2025
Seems like this workaround isn't needed as both
             - ocaml/flexdll#151
             - ocaml/flexdll#152
have been merged and release sometime ago.

Test plan: CI + CI in
https://github.com/semgrep/semgrep/actions/runs/20310940953?pr=11381

synced from Pro a5ece9662f81c8f261a772cdaa11d6bef57d5830
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.

3 participants