Configure the compiler
You can use config.json
file to configure your Sacalon compiler.
The following configuration options are available:
filename
: your main file name, if you set it, you will no longer need to pass the file name to the compiler.compiler
: your c++ compiler name(e.g :g++
,clang++
)optimize
: optimize level(0,1,2,3)(default : no optimize, e.g:-O2
)flags
: custom flags(e.g:["-pthread"]
)c++_version
: your c++ standard(e.g:c++17
orc++20
),note: c++ version must be greater than or equal to c++17 and compiler must support c++17compiler_output
: if you want to see c++ compiler output, set this totrue
c++_out
: if you want to see generated c++ code, set this totrue
, the generated c++ code are inyour_filename.cc
fil.only_compile
if you want only to compile and not link program, set this totrue
.no_std
: if it is true, the runtime library will not link with your code(you will not be able to use builtin functions).