diff options
author | erthalion <9erthalion6@gmail.com> | 2019-04-05 22:01:52 +0200 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2019-04-16 15:40:36 -0400 |
commit | 57eb5bc61317e5cdf1fd5745036e443037a37451 (patch) | |
tree | 6397f09d8c0947903f7f3b3eb3a41ea890890a34 /testsuite/tests/driver/dynamicToo | |
parent | be05bd8168b0ea65d63dc0093a5c8781a2528500 (diff) | |
download | haskell-57eb5bc61317e5cdf1fd5745036e443037a37451.tar.gz |
Show dynamic object files (#16062)
Closes #16062. When -dynamic-too is specified, reflect that in the
progress message, like:
$ ghc Main.hs -dynamic-too
[1 of 1] Compiling Lib ( Main.hs, Main.o, Main.dyn_o )
instead of:
$ ghc Main.hs -dynamic-too
[1 of 1] Compiling Lib ( Main.hs, Main.o )
Diffstat (limited to 'testsuite/tests/driver/dynamicToo')
4 files changed, 21 insertions, 0 deletions
diff --git a/testsuite/tests/driver/dynamicToo/dynamicToo006/Main.hs b/testsuite/tests/driver/dynamicToo/dynamicToo006/Main.hs new file mode 100644 index 0000000000..aab8d3ce7a --- /dev/null +++ b/testsuite/tests/driver/dynamicToo/dynamicToo006/Main.hs @@ -0,0 +1 @@ +main = print "a" diff --git a/testsuite/tests/driver/dynamicToo/dynamicToo006/Makefile b/testsuite/tests/driver/dynamicToo/dynamicToo006/Makefile new file mode 100644 index 0000000000..b78fc4aa8f --- /dev/null +++ b/testsuite/tests/driver/dynamicToo/dynamicToo006/Makefile @@ -0,0 +1,16 @@ +TOP=../../.. +include $(TOP)/mk/boilerplate.mk +include $(TOP)/mk/test.mk + +clean: + rm -f *.o + rm -f *.hi + rm -f Main + +# check that the compilation progress message will contain +# *.dyn_o file with -dynamic-too +main: + rm -f *.o + rm -f *.hi + rm -f Main + '$(TEST_HC)' $(TEST_HC_OPTS) -dynamic-too Main.hs diff --git a/testsuite/tests/driver/dynamicToo/dynamicToo006/all.T b/testsuite/tests/driver/dynamicToo/dynamicToo006/all.T new file mode 100644 index 0000000000..c9e1b52f4e --- /dev/null +++ b/testsuite/tests/driver/dynamicToo/dynamicToo006/all.T @@ -0,0 +1,2 @@ +test('dynamicToo006', [normalise_slashes, extra_files(['Main.hs'])], + run_command, ['$MAKE -s main --no-print-director']) diff --git a/testsuite/tests/driver/dynamicToo/dynamicToo006/dynamicToo006.stdout b/testsuite/tests/driver/dynamicToo/dynamicToo006/dynamicToo006.stdout new file mode 100644 index 0000000000..5c33cb2e7a --- /dev/null +++ b/testsuite/tests/driver/dynamicToo/dynamicToo006/dynamicToo006.stdout @@ -0,0 +1,2 @@ +[1 of 1] Compiling Main ( Main.hs, Main.o, Main.dyn_o ) +Linking Main ... |