Skip to content
Snippets Groups Projects
Commit 24c2e012 authored by Cheng Shao's avatar Cheng Shao
Browse files

compiler: fix dynamic_too_enable for targets that require dynamic libraries

This commit fixes dynamic_too_enable for targets whose RTS linker can
only load dynamic code.

(cherry picked from commit fc3a5591)
parent 2a9270d0
No related branches found
No related tags found
No related merge requests found
......@@ -1920,7 +1920,11 @@ enableCodeGenWhen logger tmpfs staticLife dynLife unit_env mod_graph =
-- the linker can correctly load the object files. This isn't necessary
-- when using -fexternal-interpreter.
dynamic_too_enable enable_spec ms
= hostIsDynamic && internalInterpreter &&
| sTargetRTSLinkerOnlySupportsSharedLibs $ settings lcl_dflags =
not isDynWay && not dyn_too_enabled
&& enable_object
| otherwise =
hostIsDynamic && internalInterpreter &&
not isDynWay && not isProfWay && not dyn_too_enabled
&& enable_object
where
......
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