Skip to content
Snippets Groups Projects
Commit 1a3f1131 authored by Ticat Fp's avatar Ticat Fp Committed by Marge Bot
Browse files

Pass the mcmodel=medium parameter to CC via GHC

Ensure that GHC-driver builds default to mcmodel=medium, so that GHC
passes this default parameter to CC without having to add it to the
compiled project.

Commit e70d4140 does not ensure that all
GHC-built object files have a default model of medium, and will raise an
R_LARCH_B26 overflow error.
parent 5b94f99f
No related branches found
No related tags found
No related merge requests found
...@@ -105,6 +105,10 @@ AC_DEFUN([FPTOOLS_SET_C_LD_FLAGS], ...@@ -105,6 +105,10 @@ AC_DEFUN([FPTOOLS_SET_C_LD_FLAGS],
$5="$$5 -D_THREAD_SAFE" $5="$$5 -D_THREAD_SAFE"
;; ;;
loongarch64*linux*)
$2="$$2 -mcmodel=medium"
;;
esac esac
AC_MSG_RESULT([done]) AC_MSG_RESULT([done])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment