Lines Matching full:ldflags
21 # * To work around some ldflags escaping performed by ninja/gn
26 # LDFLAGS ESCAPING
31 # rustc invocations are given access to {{rustflags}} and {{ldflags}}.
32 # We want to pass {{ldflags}} into rustc, using -Clink-args="{{ldflags}}".
33 # Unfortunately, ninja assumes that each item in {{ldflags}} is an
37 # This script converts such {{ldflags}} into individual -Clink-arg=X
66 # -- <normal rustc args> LDFLAGS {{ldflags}} RUSTENV {{rustenv}}
67 # The LDFLAGS token is discarded, and everything after that is converted
72 # Both LDFLAGS and RUSTENV **MUST** be specified, in that order, even if
103 ldflags_separator = remaining_args.index("LDFLAGS")
106 ldflags = remaining_args[ldflags_separator + 1:rustenv_separator]
111 rustc_args.extend(["-Clink-arg=%s" % arg for arg in ldflags])