Permalink
Browse files

refs #24: fix linux build

  • Loading branch information...
1 parent 0779ce2 commit a8023ae081c7b8ed178b29b61f3b291351262902 @zhensydow zhensydow committed Jan 20, 2012
Showing with 7 additions and 11 deletions.
  1. +7 −11 OpenCL.cabal
View
18 OpenCL.cabal
@@ -46,21 +46,17 @@ Library
Other-Modules:
Control.Parallel.OpenCL.Types
+ if os(linux)
+ cpp-options: -DCALLCONV=ccall -Iinclude
+ Frameworks: OpenCL
if os(darwin)
- cpp-options: -I/System/Library/Frameworks/OpenCL.framework/Headers
- else
- cpp-options: -Iinclude
+ cpp-options: -DCALLCONV=ccall -I/System/Library/Frameworks/OpenCL.framework/Headers
+ cc-options: "-U__BLOCKS__"
+ Frameworks: OpenCL
if os(windows)
- cpp-options: "-DCALLCONV=stdcall"
- else
- if os(darwin)
- cc-options: "-U__BLOCKS__"
- cpp-options: "-DCALLCONV=ccall"
- if !os(darwin)
- cpp-options: -Iinclude
- Frameworks: OpenCL
+ cpp-options: -DCALLCONV=stdcall
Test-suite tests
type: exitcode-stdio-1.0

0 comments on commit a8023ae

Please sign in to comment.