Skip to content

Commit e859a95

Browse files
committed
Make MCORE_LIBS prioritize earlier entries
1 parent f8e0106 commit e859a95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/stdlib/stdlib.mc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ let parseMCoreLibs : String -> Map String String = lam str.
1313
match str with "" then mapEmpty cmpString else
1414
let processBinding = lam acc. lam str.
1515
match strSplit "=" str with [lib, path] ++ paths
16-
then mapInsert lib (strJoin "=" (cons path paths)) acc
16+
then mapInsertWith (lam prev. lam. prev) lib (strJoin "=" (cons path paths)) acc
1717
else
1818
warnSingle [] (join
1919
[ "Invalid element of MCORE_LIBS: \""

0 commit comments

Comments
 (0)