Skip to content

Commit

Permalink
gh-125698: Replace EXEEXT with EXE_SUFFIX (#125699)
Browse files Browse the repository at this point in the history
  • Loading branch information
erlend-aasland authored Oct 20, 2024
1 parent 14cafe1 commit e924bb6
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 22 deletions.
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

0 comments on commit e924bb6

Please sign in to comment.