Skip to content

Commit 81c142a

Browse files
committed
workaround to support -O0 programs
1 parent 9de6064 commit 81c142a

File tree

1 file changed

+2
-0
lines changed
  • external-stg-interpreter/lib/Stg/Interpreter

1 file changed

+2
-0
lines changed

external-stg-interpreter/lib/Stg/Interpreter/FFI.hs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ getFFISymbol name
8181
= case name of
8282
"enabled_capabilities" -> do
8383
gets $ castPtrToFunPtr . rtsDataSymbol_enabled_capabilities . ssRtsSupport
84+
"RtsFlags" -> do
85+
pure $ error "TODO: deferred error for RtsFlags foreign symbol"
8486
_ -> do
8587
stgErrorM $ "native RTS symbol dereference is not implemented yet: " ++ BS8.unpack name
8688
getFFISymbol name = do

0 commit comments

Comments
 (0)