Debian Codegraph @

test/blackbox-tests/test-cases/stanzas/env/env-link_flags.t/run.t

raw
1 Applies profile-specific `link_flags` from the `env` stanza.
2
3 $ cat >> dune-project <<EOF
4 > (lang dune 3.0)
5 > EOF
6
7 $ cat >> dune << EOF
8 > (library (name a)(modules a))
9 > (executable (name main) (modules main) (libraries a))
10 > (env (linkall-profile (link_flags (:standard -linkall))))
11 > EOF
12
13 $ dune exec ./main.exe
14 Starting main
15
16 $ dune exec ./main.exe --profile linkall-profile
17 'A' was linked
18 Starting main