AXTyper 0.7.2 → 0.7.3
Sign up to get free protection for your applications and to get access to all the features.
@@ -6,9 +6,15 @@ $LIBS << ' -framework Cocoa -framework Carbon -framework ApplicationServices'
|
|
6
6
|
if RUBY_ENGINE == 'macruby'
|
7
7
|
$CFLAGS << ' -fobjc-gc'
|
8
8
|
else
|
9
|
+
if clang = `which clang`.chomp
|
10
|
+
unless RbConfig::CONFIG["CC"].match /clang/
|
11
|
+
RbConfig::MAKEFILE_CONFIG["CC"] = clang
|
12
|
+
RbConfig::MAKEFILE_CONFIG["CXX"] = clang
|
13
|
+
end
|
14
|
+
else
|
15
|
+
$stdout.puts "Clang not installed. Cannot build C extension"
|
16
|
+
end
|
9
17
|
$CFLAGS << ' -DNOT_MACRUBY'
|
10
|
-
RbConfig::MAKEFILE_CONFIG["CC"] = "clang"
|
11
|
-
RbConfig::MAKEFILE_CONFIG["CXX"] = "clang"
|
12
18
|
end
|
13
19
|
|
14
20
|
create_makefile('accessibility/key_coder')
|