Skip to content
Snippets Groups Projects
Commit e2f2f3d1 authored by Cheng Shao's avatar Cheng Shao :beach:
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 cfe0931b
No related branches found
No related tags found
No related merge requests found
...@@ -1918,7 +1918,11 @@ enableCodeGenWhen logger tmpfs staticLife dynLife unit_env mod_graph = ...@@ -1918,7 +1918,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 && internalInterpreter && | sTargetRTSLinkerOnlySupportsSharedLibs $ settings lcl_dflags =
not isDynWay && not dyn_too_enabled
&& enable_object
| otherwise =
hostIsDynamic && 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