summaryrefslogtreecommitdiff
path: root/testsuite/tests/driver/dynamicToo/dynamicToo005/test.T
diff options
context:
space:
mode:
authorMichael Smith <michael@diglumi.com>2015-07-23 11:41:16 +0200
committerBen Gamari <ben@smart-cactus.org>2015-07-23 11:41:48 +0200
commitd2b4df157532adf014789ae9b2496f88369e43ea (patch)
tree6e54da248af3ae13ca51abfe89b40e33914cdf82 /testsuite/tests/driver/dynamicToo/dynamicToo005/test.T
parentd784bdeb62a6b11831c5235a97449ff2a86dcc52 (diff)
downloadhaskell-d2b4df157532adf014789ae9b2496f88369e43ea.tar.gz
Generate .dyn_o files for .hsig files with -dynamic-too
With -dynamic-too, .dyn_o files were not being generated for .hsig files. Normally, this is handled in the pipeline; however, the branch for .hsig files called compileEmptyStub directly instead of going through runPipeline. When compiling a Cabal package that included .hsig files, this triggered a linker error later on, as it expected a .dyn_o file to have been generated for each .hsig. The fix is to use runPipeline for .hsig files, just as with .hs files. Alternately, one could duplicate the logic for handling -dynamic-too in the .hsig branch, but simply calling runPipeline ends up being much cleaner. Test Plan: validate Reviewers: austin, ezyang, bgamari, thomie Reviewed By: ezyang, thomie Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D1084 GHC Trac Issues: #10660
Diffstat (limited to 'testsuite/tests/driver/dynamicToo/dynamicToo005/test.T')
-rw-r--r--testsuite/tests/driver/dynamicToo/dynamicToo005/test.T8
1 files changed, 8 insertions, 0 deletions
diff --git a/testsuite/tests/driver/dynamicToo/dynamicToo005/test.T b/testsuite/tests/driver/dynamicToo/dynamicToo005/test.T
new file mode 100644
index 0000000000..48460f5135
--- /dev/null
+++ b/testsuite/tests/driver/dynamicToo/dynamicToo005/test.T
@@ -0,0 +1,8 @@
+
+test('dynamicToo005',
+ [extra_clean(['A005.o', 'A005.hi', 'A005.dyn_o', 'A005.dyn_hi']),
+ unless(have_vanilla(), skip),
+ unless(have_dynamic(), skip)],
+ run_command,
+ ['$MAKE -s --no-print-directory dynamicToo005'])
+