[Git][ghc/ghc][wip/T23675] configure: Check LlvmTarget exists for LlvmAsFlags

Rodrigo Mesquita pushed to branch wip/T23675 at Glasgow Haskell Compiler / GHC Commits: e41924c2 by Rodrigo Mesquita at 2025-06-23T16:01:21+01:00 configure: Check LlvmTarget exists for LlvmAsFlags If LlvmTarget was empty, LlvmAsFlags would be just "--target=". If it is empty now, simply keep LlvmAsFlags empty. ghc-toolchain already does this right. This fix makes the two configurations match up. - - - - - 1 changed file: - distrib/configure.ac.in Changes: ===================================== distrib/configure.ac.in ===================================== @@ -216,7 +216,7 @@ AC_SUBST([LlvmAsCmd]) dnl We know that `clang` supports `--target` and it is necessary to pass it dnl lest we see #25793. -if test -z "$LlvmAsFlags" ; then +if test -z "$LlvmAsFlags" && ! test -z "$LlvmTarget"; then LlvmAsFlags="--target=$LlvmTarget" fi AC_SUBST([LlvmAsFlags]) View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/e41924c28c0866c8f0074a66f942b9e3... -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/e41924c28c0866c8f0074a66f942b9e3... You're receiving this email because of your account on gitlab.haskell.org.
participants (1)
-
Rodrigo Mesquita (@alt-romes)