Thanks for your reply, make sense, build library with a different cpp-flags
could actually build a different library after all.

On Wed, May 17, 2017 at 6:34 AM Michael Snoyman <michael.snoy...@gmail.com>
wrote:

> Unfortunately, I'm not aware of a better solution, I've had to set things
> up similarly in Warp, for example.
>
> On Tue, May 16, 2017, 12:54 PM Baojun Wang <wan...@gmail.com> wrote:
>
>> Hi list,
>>
>> My stack project builds a default library-A (Simple build type), it has
>> an A-exe which uses library A, this works perfectly; however, test suit
>> A-test expects library-A compiled with a different cpp-flags (-DTEST), thus
>> it fails to build if only library-A is added into its dependencies. For now
>> I'm adding the entire library-A modules as ``other-modules`` in test suit
>> A-test, this is quit cumbersome and library-A dependencies have to be added
>> to test-A again. Instead of modify cpp-flags at first place (for
>> library-A), is there a better approach for this particular case?
>>
>> Thanks & Regards
>> baojun
>>
> --
>> You received this message because you are subscribed to the Google Groups
>> "haskell-stack" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to haskell-stack+unsubscr...@googlegroups.com.
>> To post to this group, send email to haskell-stack@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/haskell-stack/5b0b8798-8485-4c55-b0c3-6820dd6852fe%40googlegroups.com
>> <https://groups.google.com/d/msgid/haskell-stack/5b0b8798-8485-4c55-b0c3-6820dd6852fe%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"haskell-stack" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to haskell-stack+unsubscr...@googlegroups.com.
To post to this group, send email to haskell-stack@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/haskell-stack/CAC%2Ba-TZmsxDr0PP%2BmO%2Bgryz9mEXzpZ0AMq%3D5ophwHky8Xzf8CQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to