Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Now dynamically figures out which compiler to use, instead

of hardcoding in gcc.



git-svn-id: http://mkrf.rubyforge.org/svn/trunk@44 6e48df83-f314-0410-b1e7-e69642b30866
  • Loading branch information...
commit e27b45a7a42f6fedb7618dd8971bfe36187d33c9 1 parent dfcfeee
johnmg authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/mkrf/generator.rb
View
3  lib/mkrf/generator.rb
@@ -68,6 +68,7 @@ def initialize(extension_name, source_patterns = ["*.c"], availability_options =
@extension_name = extension_name + ".#{CONFIG['DLEXT']}"
@available = Mkrf::Availability.new(availability_options)
@defines = []
+ @cc = CONFIG['CC']
@objects = ''
@ldshared = ''
@@ -152,7 +153,7 @@ def rakefile_contents # :nodoc:
SRC = FileList[#{sources.join(',')}]
OBJ = SRC.ext('o')
-CC = "gcc"
+CC = '#{@cc}'
ADDITIONAL_OBJECTS = '#{objects}'
Please sign in to comment.
Something went wrong with that request. Please try again.