Skip to content

Conversation

@linh2931
Copy link

Resolved VaultaFoundation#10.

Arguments of programs like CMake, gdb, and ctest are introduced using --, after DUNE's own arguments.

A section of DUNE's help look like

...
dune -h
  --cmake-build ['DIR', '-- FLAGS (Optional)']
                        build a smart contract project at the directory given
                        optional flags are of the form -- -DFLAG1=On
                        -DFLAG2=Off]
  --ctest ['DIR', '-- FLAGS (Optional)']
                        run the ctest tests for a smart contract project at
                        the directory given optional flags are of the form --
                        -VV
  --gdb ['DIR', '-- FLAGS (Optional)']
                        run the ctest tests for a smart contract project at
                        the directory given optional flags are of the form --
                        -VV
...

A sample run of gdb with argument -c core-file looks like

dune --gdb ./src -- -c core-file
GNU gdb (Ubuntu 9.2-0ubuntu1~20.04.1) 9.2
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
/host/home/lh/work/dune/src: No such file or directory.
/app/core-file: No such file or directory.

@larryk85 larryk85 self-requested a review July 13, 2022 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DUNE fails to pass arguments to individual programs

2 participants