Next: , Previous: , Up: Options for target language compilation   [Contents][Index]


9.21.2 Options for compiling C code


--cc compiler-name

Specify which C compiler to use.


--c-optimize
--c-optimise

Enable optimizations by the C compiler.


--c-include-directory directory
–no-c-include-directory
--c-include-dir directory
–no-c-include-dir

Append directory to the list of directories to be searched for C header files. Note that if you want to override this list, instead of appending to it, then you can set the MERCURY_MC_ALL_C_INCL_DIRS environment variable to a sequence of ‘--c-include-directory’ options.


--cflags <options
–no-cflags

Specify options to be passed to the C compiler. These options will not be quoted when passed to the shell.


--cflag option

Specify a single word option to be passed to the C compiler. The word will be quoted when passed to the shell.