Verified Commit 260090ae authored by Camil Staps's avatar Camil Staps 🚀

Fix to make sure root module bytecode is always linked first

parent 5b453ce9
......@@ -1703,6 +1703,10 @@ ByteCodeLink fileinfo project ps
# bcpath = fulPath startupdir (PR_GetRootDir project) (PR_GetByteCodePath project)
(abcpaths,fileinfo) = FI_GetAbcFiles fileinfo
abcpaths = [p % (0,size p-4) +++ "bc" \\ p <|- abcpaths]
# (root_mdn,project) = PR_GetRootModuleDirAndName project
root = ModuleDirAndNameToABCSystemPathname root_mdn
root = root % (0,size root-4) +++ "bc"
abcpaths = [root:removeMember root abcpaths]
# ps = showInfo (Level2 ("Linking bytecode for '" +++ RemovePath bcpath +++ "'")) ps
# (h,w) = runProcess bclink (abcpaths ++ ["-o",bcpath]) Nothing ps.gst_world
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment