Commit 07ddeaf7 authored by Moritz Angermann's avatar Moritz Angermann

GHC_LLVM_TARGET: Keep android OS

Our usual GHC_CONVERT_OS macro, will turn any andoird* into android.
This however drops the essential androideabi part. As such for the
GHC_LLVM_TARGET we only convert the VENDOR, not the OS.

Reviewers: bgamari, austin, hvr

Reviewed By: bgamari

Subscribers: rwbarton, thomie, erikd

Differential Revision:
parent 1421d87c
...@@ -1903,6 +1903,14 @@ AC_DEFUN([GHC_LLVM_TARGET], [ ...@@ -1903,6 +1903,14 @@ AC_DEFUN([GHC_LLVM_TARGET], [
llvm_target_vendor="unknown" llvm_target_vendor="unknown"
llvm_target_os="windows" llvm_target_os="windows"
;; ;;
# retain any android and gnueabi linux flavours
# for the LLVM Target. Otherwise these would be
# turned into just `-linux` and fail to be found
# in the `llvm-targets` file.
*) *)
GHC_CONVERT_VENDOR([$2],[llvm_target_vendor]) GHC_CONVERT_VENDOR([$2],[llvm_target_vendor])
GHC_CONVERT_OS([$3],[$1],[llvm_target_os]) GHC_CONVERT_OS([$3],[$1],[llvm_target_os])
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment