Commit 5b2b3950 authored by John Ericson's avatar John Ericson
Browse files

minimal-bootstrap.mes: `replaceExt` -> `stripExt`

parent 23f849f4
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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}