brew install tcc
nimble install nrpl
nrpl
> echo 1
/usr/lib/crt1.o: error: unrecognized file type
tcc: error: file 'crt1.o' not found
tcc: error: file 'crti.o' not found
/usr/lib/libdl.dylib: error: bad architecture
tcc: error: library 'dl' not found
Error: execution of an external program failed: 'tcc -o /Users/timothee/git_clone/nim/timn/nrpltmp -ldl /Users/timothee/git_clone/nim/timn/nimcache/nrpltmp.o /Users/timothee/git_clone/nim/timn/nimcache/stdlib_system.o'
NOTE: tcc is potentially nice to support, for compile times (important in repl)
workaround:
after #17, use nrpl will use clang by default (also now overridable with --cc:clang )
EDIT: actually tcc -run works (with warnings) even if tcc -c doesn't, so could maybe be used like that (we can only run directly, not compile)
EDIT: see https://github.com/TinyCC/tinycc/issues/8
specific to OSX
links
brew install tcc
https://lists.gnu.org/archive/html/tinycc-devel/2017-02/msg00103.html https://stackoverflow.com/questions/3712902/problems-compiling-tcc-on-os-x https://github.com/andreiw/tinycc possible port with improved support; but see https://github.com/andreiw/tinycc/issues/1NOTE: tcc is potentially nice to support, for compile times (important in repl)
workaround:
after #17, use nrpl will use clang by default (also now overridable with --cc:clang )
EDIT: actually
tcc -run
works (with warnings) even iftcc -c
doesn't, so could maybe be used like that (we can only run directly, not compile) EDIT: see https://github.com/TinyCC/tinycc/issues/8