Skip to content
Snippets Groups Projects
Commit ba24a6bd 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 1638d829
No related branches found
No related tags found
No related merge requests found
...@@ -1922,7 +1922,11 @@ enableCodeGenWhen logger tmpfs staticLife dynLife unit_env mod_graph = ...@@ -1922,7 +1922,11 @@ enableCodeGenWhen logger tmpfs staticLife dynLife unit_env mod_graph =
-- the linker can correctly load the object files. This isn't necessary -- the linker can correctly load the object files. This isn't necessary
-- when using -fexternal-interpreter. -- when using -fexternal-interpreter.
dynamic_too_enable enable_spec ms dynamic_too_enable enable_spec ms
= hostIsDynamic && not hostIsProfiled && internalInterpreter && | sTargetRTSLinkerOnlySupportsSharedLibs $ settings lcl_dflags =
not isDynWay && not dyn_too_enabled
&& enable_object
| otherwise =
hostIsDynamic && not hostIsProfiled && internalInterpreter &&
not isDynWay && not isProfWay && not dyn_too_enabled not isDynWay && not isProfWay && not dyn_too_enabled
&& enable_object && enable_object
where 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