- 新增 bin/ 自包含工具链目录
- bin/pcc.exe: 编译器主程序
- bin/libpcc.dll: 嵌入式编译库
- bin/pcmake.exe: 构建工具(自动定位 pcc,无 bat 包装)
- bin/include/: 头文件(pcc 自动从 exe 位置查找)
- bin/lib/: 运行时库
修复: pcc 从 bin/ 直接运行找不到 pccdefs.h/libpcc1.a
(根因: pcc 从可执行文件位置查找 {B}/include 和 {B}/lib)
删除所有工具链脚本:
- bin/pcc-run.cmd (pcc -run 直接可用)
- bin/pcmake.bat (pcmake.exe 自动定位)
- win32/build-pcc.bat (纯命令构建)
- build-release.ps1
验证: ./pcc demo.c -o demo.exe 在 bin/ 下直接工作
90 行
1.1 KiB
Plaintext
90 行
1.1 KiB
Plaintext
*~
|
|
\#*
|
|
.#*
|
|
*.o
|
|
*.a
|
|
*.exe
|
|
*.dll
|
|
*.obj
|
|
*.pdb
|
|
*.lib
|
|
*.exp
|
|
*.log
|
|
*.bz2
|
|
*.zip
|
|
.gdb_history
|
|
a.out
|
|
tcc_g
|
|
tcc
|
|
tcc_c
|
|
tcc_p
|
|
*-tcc
|
|
libtcc*.def
|
|
|
|
config*.h
|
|
*_.h
|
|
config*.mak
|
|
config.texi
|
|
conftest*
|
|
c2str
|
|
tags
|
|
TAGS
|
|
tcc.1
|
|
*.pod
|
|
*.tcov
|
|
tcc-doc.html
|
|
tcc-doc.info
|
|
|
|
win32/doc
|
|
win32/examples/libtcc_test.c
|
|
win32/libtcc
|
|
win32/lib/32
|
|
win32/lib/64
|
|
win32/include/float.h
|
|
win32/include/stdalign.h
|
|
win32/include/stdarg.h
|
|
win32/include/stdbool.h
|
|
win32/include/stddef.h
|
|
win32/include/stdnoreturn.h
|
|
win32/include/varargs.h
|
|
win32/include/tcclib.h
|
|
win32/include/tccdefs.h
|
|
win32/include/stdatomic.h
|
|
win32/include/tgmath.h
|
|
|
|
tests/tcctest[1234]
|
|
tests/tcctest.gcc
|
|
tests/*.out*
|
|
tests/*.ref
|
|
tests/*.txt
|
|
tests/*.gcc
|
|
tests/*-cc*
|
|
tests/*-tcc*
|
|
tests/libtcc_test
|
|
tests/libtcc_test_mt
|
|
tests/asm-c-connect
|
|
tests/asm-c-connect-sep
|
|
tests/vla_test
|
|
tests/hello
|
|
tests/tests2/fred.txt
|
|
libtcc.dylib
|
|
|
|
# Release packages
|
|
release/
|
|
*.zip
|
|
|
|
# Build output (self-contained toolchain)
|
|
bin/include/
|
|
bin/lib/
|
|
bin/*.o
|
|
bin/*.obj
|
|
|
|
|
|
# Allow toolchain binaries in bin/ to be committed
|
|
!bin/
|
|
bin/*
|
|
!bin/pcc.exe
|
|
!bin/pcmake.exe
|
|
!bin/libpcc.dll
|
|
!bin/libpcc1.a
|