Skip to content

Update Makefile - #56

Open
frank-dspeed wants to merge 1 commit into
just-js:mainfrom
frank-dspeed:patch-1
Open

frank-dspeed wants to merge 1 commit into
just-js:mainfrom
frank-dspeed:patch-1

Conversation

@frank-dspeed

Copy link
Copy Markdown

closes: #55

@billywhizz

Copy link
Copy Markdown
Contributor

does the Makefile work on windows with this change? I can try it myself soon.

@frank-dspeed

frank-dspeed commented Oct 3, 2026 •

Copy link
Copy Markdown
Author

@billywhizz yes it works well but i have now a bigger refactoring ongoing i guess i did come up with something cool i made all the lib stuff win compatible and removed redundancys. eg: i added node resolve and node:* import and require support so now all build scripts are refactored to node:* eg node:process node:fs and so on an lo does offer that via lib/node.js lib/node/* bindings to old core at present.

i adjusted lib/gen.js and lib/build.js to do everything and be also node compatible so now node lib/gen.js works and lo gen works also lo lib/gen.js works so everything works LO_CACHE=1 works and so on and so on

i guess i can come up with some fresh stuff

PS E:\awesome-os\lo> node .\lib\build.js help

lo build script (lib/build.js)
Target Platform: win (x64) | V8: 15.3 | Runtime: lo

Available targets:
deps Check and ensure all build prerequisites are installed (runs pmake-deps.js)
install-llvm Download and silently install LLVM on Windows
bootstrap Download prebuilt lo.exe if missing for code generator bootstrap
gen Generate builtins.h, core.cc, and main_win.h using lo.exe / lo
v8-stamp Create v8 directory marker
v8-include Download & extract V8 headers
v8-src Download & extract V8 source code for debugging
v8-lib Download V8 static library for the current platform
v8 Download all required V8 artifacts
builtins.o Assemble builtins.S / builtins_linux.S
main.o Compile main.cc object file
lo.o Compile lo.cc object file
mach.o Build macOS mach binding
core.o Build core binding
win.o Build Windows platform binding (win.cc)
epoll.o Build Linux epoll binding
system.o Build system binding
musl-glibc-compat.o Build musl-glibc-compat shim
kevents.o Build macOS kqueue (kevents) binding
curl.o Build curl binding
em_inflate.o Download & build em_inflate object
inflate.a Build inflate binding
lo.exe Link the lo binary
all Build default target (lo.exe)
check Run runtime sanity tests
check-build Test building works
docs Download and extract documentation
install Install lo into ~/.lo/bin
clean Remove compiled object files, archives, and binaries
cleanall Clean all compiled objects and purge v8/ directory
reset Git checkout builtins_linux.S, builtins.S, main.h
binding Compile a binding shared library/archive (e.g. binding pico)
help Display this help listing

Examples:
node lib/build.js
node lib/build.js help
node lib/build.js check
node lib/build.js clean
node lib/build.js binding pico
node lib/build.js V8_VERSION=15.3 MUSL=1
lo build
lo build check
lo build clean
lo build binding pico

just refactoring to do build.js runtime <name in runtimes/.config.js> and build.js binding <name in lib//api.js optional build.js>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Windows Build quirks: when other shells are in path

2 participants