minimal-bootstrap.mes: replaceExt
-> stripExt
This commit is contained in:
parent
23f849f49d
commit
5b2b3950f0
|
@ -131,13 +131,13 @@ let
|
|||
|
||||
CC = toString ([ cc ] ++ ccArgs);
|
||||
|
||||
replaceExt = ext: source:
|
||||
stripExt = source:
|
||||
lib.replaceStrings
|
||||
[ ".c" ]
|
||||
[ ext ]
|
||||
[ "" ]
|
||||
(builtins.baseNameOf source);
|
||||
|
||||
compile = source: kaem.runCommand (replaceExt "" source) {} ''
|
||||
compile = source: kaem.runCommand (stripExt source) {} ''
|
||||
mkdir ''${out}
|
||||
cd ''${out}
|
||||
${CC} -c ${srcPrefix}/${source}
|
||||
|
|
Loading…
Reference in a new issue