ML-BUILD(1)

πŸ“¦
version 110.99.9 Β· 2 versions
, in arch rolling

πŸ’… ML-BUILD(1) β€” the build tool era ✨

okay so bestie, welcome to ml-build(1) β€” a command-line build tool for SML/NJ programs, and honestly? she's iconic. πŸŽ€


✨ NAME ✨

ml-build β€” command-line build tool for SML/NJ programs. that's the whole vibe, no cap. πŸ¦‹


🌸 SYNOPSIS 🌸

ml-build [OPTIONS] group.cm [main [heap-image]]

look at her. three optional little guys trailing after the options and the .cm file. main, then heap-image. the way that she just takes them. πŸ’…


πŸ’– DESCRIPTION πŸ’–

ML-Build is a command-line tool for building applications from SML source files, and she does it using the Compilation Manager and the SML/NJ compiler. literally her whole job. highkey ate. πŸ”₯


πŸ‘‘ OPTIONS πŸ‘‘

okay here's the part where she gets ✨customizable✨ β€” every single flag, right here, nothing skipped:

  • -Cctl=value β€” set the control ctl to value. give her a control name, give her a value, done. 🫢
  • -Dname=value β€” define the CM variable name to have the given value. you decide what it equals, she respects it.
  • -D'name β€” see that little single quote? πŸ‘€ define the CM variable name to have the value 1. that's it, that's the whole thing. the ' is doing the heavy lifting and honestly same.
  • -Uname β€” remove any definition of the CM variable name. un-defining. the breakup option. πŸ’€
  • -S setup.cm β€” load and execute the code specified by the CM file setup.cm prior to the main build process. why? because this option lets you customize the compiler via side-effect. it's giving setup ritual before the main event. 🧚
ngl the -S one is the sneaky main character β€” she runs before everything else, so whatever she does, she does it first. side effects and all. 🌈

⭐ EXAMPLES ⭐

these are the exact lines, bestie, copy them carefully:

ml-build foo.cm

builds the program foo assuming a main function named Test.main. (yes, she just assumes that. confident queen. πŸ’…)

ml-build foo.cm Main.main

builds the program foo with main function named Main.main. now you named her main function. slay. ✨

ml-build sources.cm Main.main prog

builds the program prog with main function named Main.main. three-argument full glam. πŸ‘‘


πŸ¦‹ AUTHOR πŸ¦‹

ML-Build was written by Matthias Blume. thank you king, we love a builder. 🫢


🌸 SEE-ALSO 🌸

go read her friends, fr fr:


πŸŽ€ COPYING πŸŽ€

Copyright Β© 2020 The Fellowship of SML/NJ

This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

like bestie, zero warranty. none. not even the implied ones. it's free software with free-software energy. πŸ™ˆ

and that's the whole page, pookie. πŸ’œ this beauty comes to you from SML/NJ, dated 2025-11-04, and it's ML-BUILD(1) all the way down. mwah. πŸ˜­πŸ’–

πŸ“¦ where this page comes from