Skip to content
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

Add .exe suffix to executable Windows targets #1181

Merged
merged 1 commit into from
Dec 30, 2024
Merged

Conversation

DanRStevens
Copy link
Collaborator

Ideally the output filenames should match platform expectations. Normally the .exe suffix would be added anyway. Though the makefile rules reference the output filenames in a few places. Mostly the .exe suffix can be inferred. However, it is better for output names to match exactly, especially for makefile rules that need to determine if an output file is up-to-date.

Additionally, it was noted while looking into Wine upgrades that starting with Wine version 7, there seems to be trouble starting executable files when the .exe suffix is not explicitly specified. Failure to specify it can result in a hard to understand error message with code c0000135 (STATUS_DLL_NOT_FOUND defined in ntstatus.h):

wine: failed to open "../.build/Debug_Linux_test/test": c0000135

The same command works when the file to run is given an explicit suffix when passed to wine:

"../.build/Debug_Linux_test/test.exe"


Relates to:

Ideally the output filenames should match platform expectations. Normally the `.exe` suffix would be added anyway. Though the `makefile` rules reference the output filenames in a few places. Mostly the `.exe` suffix can be inferred. However, it is better for output names to match exactly, especially for `makefile` rules that need to determine if an output file is up-to-date.

Additionally, it was noted while looking into Wine upgrades that starting with Wine version 7, there seems to be trouble starting executable files when the `.exe` suffix is not explicitly specified. Failure to specify it can result in a hard to understand error message with code `c0000135` (`STATUS_DLL_NOT_FOUND` defined in `ntstatus.h`):
> wine: failed to open "../.build/Debug_Linux_test/test": c0000135

The same command works when the file to run is given an explicit suffix when passed to `wine`:
> "../.build/Debug_Linux_test/test.exe"
@DanRStevens DanRStevens merged commit 8c04aef into main Dec 30, 2024
8 checks passed
@DanRStevens DanRStevens deleted the makefileExeSuffix branch December 30, 2024 01:38
DanRStevens added a commit that referenced this pull request Dec 30, 2024
This version of Wine requires an explicit `.exe` suffix on the executable names when opening them with `wine`. Without the suffix, loading fails with error `c0000135` (`STATUS_DLL_NOT_FOUND`), which is defined in `ntstatus.h`.

For details, see PR #1181.
DanRStevens added a commit that referenced this pull request Jan 1, 2025
This version of Wine requires an explicit `.exe` suffix on the executable names when opening them with `wine`. Without the suffix, loading fails with error `c0000135` (`STATUS_DLL_NOT_FOUND`), which is defined in `ntstatus.h`.

For details, see PR #1181.
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