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

gh-125698: Replace EXEEXT with EXE_SUFFIX #125699

Merged
merged 1 commit into from
Oct 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile.pre.in
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ EXPORTSYMS= @EXPORTSYMS@
EXPORTSFROM= @EXPORTSFROM@

# Executable suffix (.exe on Windows and Mac OS X)
EXE= @EXEEXT@
EXE= @EXE_SUFFIX@
BUILDEXE= @BUILDEXEEXT@

# Name of the patch file to apply for app store compliance
Expand Down
22 changes: 11 additions & 11 deletions configure

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 10 additions & 10 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -1325,19 +1325,19 @@ AC_ARG_WITH([suffix],
[AS_HELP_STRING([--with-suffix=SUFFIX], [set executable suffix to SUFFIX (default is empty, yes is mapped to '.exe')])],
[
AS_CASE([$with_suffix],
[no], [EXEEXT=],
[yes], [EXEEXT=.exe],
[EXEEXT=$with_suffix]
[no], [EXE_SUFFIX=],
[yes], [EXE_SUFFIX=.exe],
[EXE_SUFFIX=$with_suffix]
)
], [
AS_CASE([$ac_sys_system/$ac_sys_emscripten_target],
[Emscripten/browser*], [EXEEXT=.js],
[Emscripten/node*], [EXEEXT=.js],
[WASI/*], [EXEEXT=.wasm],
[EXEEXT=]
[Emscripten/browser*], [EXE_SUFFIX=.js],
[Emscripten/node*], [EXE_SUFFIX=.js],
[WASI/*], [EXE_SUFFIX=.wasm],
[EXE_SUFFIX=]
)
])
AC_MSG_RESULT([$EXEEXT])
AC_MSG_RESULT([$EXE_SUFFIX])

# Test whether we're running on a non-case-sensitive system, in which
# case we give a warning if no ext is given
Expand All @@ -1347,13 +1347,13 @@ if test ! -d CaseSensitiveTestDir; then
mkdir CaseSensitiveTestDir
fi

if test -d casesensitivetestdir && test -z "$EXEEXT"
if test -d casesensitivetestdir && test -z "$EXE_SUFFIX"
then
AC_MSG_RESULT([yes])
BUILDEXEEXT=.exe
else
AC_MSG_RESULT([no])
BUILDEXEEXT=$EXEEXT
BUILDEXEEXT=$EXE_SUFFIX
fi
rmdir CaseSensitiveTestDir

Expand Down
Loading