_cb_fix_comp Function

Related Topics:

Callbacks _cb_fix_link Function

_cb_fix_comp compilation_arguments

This ksh function, if defined, is invoked by dbx instead of calling the compiler directly during a \Qfix'. This is a good place to customize the compilation line by adding or changing options, modifying paths, etc.

Use with caution.

Example

_cb_fix_comp() {
	echo $*
	eval $*
}

This just echoes and executes the compilation line without modifications,whereas:

_cb_fix_comp() {
	eval "$(echo $* | sed -e 's! -g0 ! -g !')"
}

replaces \Q-g0' with \Q-g' to turn off C++ front-end inlining when the compiler is run.

The arguments of this function are from the original, unmodifiedcompilation line, plus some options added internally for use by dbx.