Skip to content

Commit

Permalink
fix/opencl-framework fixes building for OSX
Browse files Browse the repository at this point in the history
OSX Requires a -framework option to compile opencl

FIX autumnai#46
  • Loading branch information
y-ich authored and johnnyman727 committed Mar 4, 2016
1 parent c83ee94 commit 12bc044
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/frameworks/opencl/api/ffi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
use libc;
use super::types as cl;

#[link(name = "OpenCL")]
#[cfg_attr(target_os = "macos", link(name = "OpenCL", kind = "framework"))]
#[cfg_attr(not(target_os = "macos"), link(name = "OpenCL"))]
extern
{
/* Platform APIs */
Expand Down

0 comments on commit 12bc044

Please sign in to comment.