添加了新的SccCompiler类以支持SCC编译器,包括编译和链接功能。 更新了justfile中的构建任务,添加了clean、build、build-install和test-scc等新任务。 同时修复了异常处理语法错误并将wc.py工具文件移除。
34 lines
654 B
Makefile
34 lines
654 B
Makefile
list:
|
|
just --list
|
|
|
|
build_docs:
|
|
doxygen Doxyfile
|
|
|
|
docs: build_docs
|
|
python -m http.server -d docs/html
|
|
|
|
count:
|
|
# you need download `tokei` it can download by cargo
|
|
tokei libs runtime src -e tests
|
|
|
|
count-file:
|
|
# you need download `tokei` it can download by cargo
|
|
tokei libs runtime src -e tests --files
|
|
|
|
clean:
|
|
cbuild clean
|
|
|
|
build:
|
|
cbuild build -cclang
|
|
|
|
build-install: build
|
|
cp ./build/dev/scc.exe ./scc.exe
|
|
|
|
test-scc:
|
|
# windows: (Get-Content a.txt -Raw) -replace '\x1b\[[0-9;]*[a-zA-Z]', '' | Set-Content clean.txt
|
|
# linux: sed 's/\x1b\[[0-9;]*[a-zA-Z]//g' a.txt > clean.txt
|
|
just clean
|
|
just build-install
|
|
just clean
|
|
cbuild run -cscc -- -h
|