summaryrefslogtreecommitdiff
path: root/mk/wrapper/wrapper-subr.sh
AgeCommit message (Collapse)AuthorFilesLines
2007-02-22Changed the default warning message to include the word "unknown", sincerillig1-2/+2
otherwise it doesn't sound like a warning.
2007-02-21The options -I, -L and -R must not be followed directly by anotherrillig1-1/+8
option. Instead of just merging them, the wrapper fails. Let's see which packages get broken by that and then fix them. I've also heard rumours that a plain -L is used as an alias to -nostdlib in some compilers. This would have been handled wrong up to now, since it definitely wasn't intended to be merged with the following argument.
2007-02-19The ABI for which the code should be generated can be queried from therillig1-1/+8
wrapper_abi variable. This is used in the MIPSpro wrapper to reject any package that tries to compile a file for the wrong ABI. This is not just a warning because such a package most likely has more severe problems. The gcc -Wall option seems to be similar to the MIPSpro -fullwarn option, so map them.
2006-11-30The function transform_pass_with_warning() also gets its debuggingrillig1-1/+2
output.
2006-11-30Removed the transform_to_nocache() function, since it is unused.rillig1-10/+7
When discarding arguments, split_arg is set to yes, so that no empty arguments are added to the resulting command line. A more informative debugging message is also printed in that case. Added a debugging message to transform_to(), for consistency with the other functions.
2006-11-30Added transform_to_and_split(), which removes the need for therillig1-1/+9
compiler-specific transformations to access the split_arg variable directly.
2006-11-26Renamed transform_pass_unknown to transform_pass_with_warning and addedrillig1-4/+13
transform_discard_with_warning.
2006-11-26transform_pass_unknown writes its warning into the wrapper log file,rillig1-2/+2
instead of doing nothing at all. (Before, I had not known where to write these warnings, so it had been commented out.)
2006-11-14Fixed indentation of the debugging messages and the missing newline atrillig1-4/+3
the end of the file.
2006-11-11Added wrapper-subr.sh, which provides shell functions that are useful torillig1-0/+41
make the wrapper code less frightening. For example, instead of arg="${arg#-Wl,}" $debug_log $wrapperlog " (transform-sunpro-cc) to: $arg" addtocache=yes one can simply write transform_to "${arg-Wl,}" The functions that are currently implemented are: transform_to, transform_discard, transform_to_nocache, transform_discard, transform_pass and transform_pass_unknown.