From 609e64d437e6acfb0fd8d9431a4f0f18bb70134e Mon Sep 17 00:00:00 2001 From: Alexey Vasiliev Date: Sat, 16 Aug 2014 22:06:32 +0300 Subject: [PATCH] DRY --- ext/webp_ffi/Rakefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ext/webp_ffi/Rakefile b/ext/webp_ffi/Rakefile index 6cc5d25..14a3ccb 100644 --- a/ext/webp_ffi/Rakefile +++ b/ext/webp_ffi/Rakefile @@ -15,6 +15,8 @@ FFI::Compiler::CompileTask.new('webp_ffi') do |c| c.have_library?('jpeg') c.have_library?('tiff') # compiler flags - c.cflags << "-arch x86_64" if c.platform.mac? - c.ldflags << "-arch x86_64" if c.platform.mac? + if c.platform.mac? + c.cflags << "-arch x86_64" + c.ldflags << "-arch x86_64" + end end