Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 1019 Bytes

README.org

File metadata and controls

20 lines (13 loc) · 1019 Bytes

A small example of raylib and tinycc hot reloading

This repo contains a Makefile that should setup the required inlcude and library paths for using raylib and tinycc together without an installation. SELinux may need to be disabled even if tinycc was configured with --with-selinux.

You will need to configure tinycc yourself with cd tinycc && ./configure

make setup should handle replacing gcc with tcc in the makefiles and compile tinycc and raylib.

Due to path things use make run to set the correct enviroment variables when launching.

Edit target.c and press a to recompile the target.c file.

Clone with git clone --recurse-submodules https://github.com/Jake-Moss/raylib-tcc-experiments to grab tinycc and raylib.

References

Thanks to https://ciesie.com/post/tinycc_dynamic_compilation/ for their blog post where I nicked the compile_program funciton.

core_2d_camera_platformer.c is a modified example file from raylib/examples/core/core_2d_camera_platformer.c