Allow meson build file to exit early. (#2808)
parent
6146353f45
commit
37d379ebe5
7 changed files with 70 additions and 1 deletions
@ -0,0 +1,10 @@ |
||||
# Should run, even though main.cpp does not exist and we call error in the last line. |
||||
# subdir_done jumps to end, so both lines are not executed. |
||||
|
||||
project('example exit', 'cpp') |
||||
|
||||
subdir_done() |
||||
|
||||
executable('main', 'main.cpp') |
||||
error('Unreachable') |
||||
|
@ -0,0 +1,8 @@ |
||||
# Check that skip_rest only exits subdir, not the whole script. |
||||
# Should create an error because main.cpp does not exists. |
||||
project('example exit', 'cpp') |
||||
|
||||
subdir('subdir') |
||||
|
||||
message('Good') |
||||
executable('main', 'main.cpp') |
@ -0,0 +1,3 @@ |
||||
subdir_done() |
||||
|
||||
error('Unreachable') |
Loading…
Reference in new issue