diff options
author | Ben Gamari <bgamari.foss@gmail.com> | 2017-05-11 15:41:38 -0400 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2017-05-11 17:33:11 -0400 |
commit | aa8dcb33fd26d8bfd4cac2fbd1b1785b4a869897 (patch) | |
tree | c63de724bea2bbacaa3f855d87f1f2b796336043 /rts | |
parent | 2fcb5c5c3f6c5a5936eeb5dc07b476e5737f12ad (diff) | |
download | haskell-aa8dcb33fd26d8bfd4cac2fbd1b1785b4a869897.tar.gz |
rts: Don't build StgCRunAsm.S if unregisterised
StgCRunAsm.S provides StgCRun on powerpc64le platforms when
registerised. However, in the unregisterised setting we use the
mini-interpreter and consequently shouldn't build StgCRunAsm.S lest we
get duplicate symbols.
Test Plan: Build unregisterised compiler on AIX.
Reviewers: hvr, trommler, austin, simonmar
Reviewed By: trommler, simonmar
Subscribers: rwbarton, thomie
Differential Revision: https://phabricator.haskell.org/D3560
Diffstat (limited to 'rts')
-rw-r--r-- | rts/ghc.mk | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/rts/ghc.mk b/rts/ghc.mk index d089859ca2..990f4db4e2 100644 --- a/rts/ghc.mk +++ b/rts/ghc.mk @@ -55,9 +55,12 @@ rts_S_SRCS += rts/AdjustorAsm.S endif # this matches substrings of powerpc64le, including "powerpc" and "powerpc64" ifneq "$(findstring $(TargetArch_CPP), powerpc64le)" "" +# unregisterised builds use the mini interpreter +ifneq "$(GhcUnregisterised)" "YES" rts_S_SRCS += rts/StgCRunAsm.S endif endif +endif ifeq "$(GhcUnregisterised)" "YES" GENAPPLY_OPTS = -u |