Commit 0e7846c3 authored by serge-sans-paille's avatar serge-sans-paille
Browse files

Bug 1890509 - Remove AC_EXEEXT check r=glandium

This check is used to set $EXEXT, which is unused, but it also sets
$ac_exeext which is used internally for various tests, including
AC_TRY_LINK.

Interestingly, setting $ac_exeext to a non empty value bypasses the only
portability issue with MinGW that automatically adds a `.exe` suffix if no
extension is given. So Always set `.out` as extension, as it's only used
internally.

Differential Revision: https://phabricator.services.mozilla.com/D207001
parent e4be2b91
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -54,8 +54,9 @@ dnl ========================================================

if test "$COMPILE_ENVIRONMENT"; then

# Run some logic to figure out exe extensions (mostly for mingw's sake)
AC_EXEEXT
# This prevents mingw from adding .exe when generating executable. Internal use
# only.
ac_exeext=.out

# Note:
#   In Mozilla, we use the names $target, $host and $build incorrectly, but are
+3 −2
Original line number Diff line number Diff line
@@ -49,8 +49,9 @@ dnl ========================================================

if test "$COMPILE_ENVIRONMENT"; then

# Run some logic to figure out exe extensions (mostly for mingw's sake)
AC_EXEEXT
# This prevents mingw from adding .exe when generating executable. Internal use
# only.
ac_exeext=.out

if test "$target" != "$host"; then
    MOZ_CROSS_COMPILER