You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[clang][driver] Special care for -l flags in config files
Currently, if a -l flag is added into a config file (e.g. clang.cfg),
it is situated before any object file in the effective command
line. If the library requested by given -l flag is static, its
symbols will not be made visible to any of the object files provided
by the user. Also, the presence of any of the -l flags in a config
file confuses the driver whenever the user invokes clang without
any parameters.
This patch solves both of those problems, by moving the -lm flags
specified in a config file to the end of the input list, and by
discarding them when there are no other inputs provided by the user,
or the last phase is not the linking phase.
0 commit comments