Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #7 from tomekw/master

Do not treat warings as errors
  • Loading branch information...
commit 9d6d28f93b027088f1f7cd0931b7df0cc7b62a8a 2 parents 693ee37 + 6e042c3
@jgarber jgarber authored
Showing with 7 additions and 7 deletions.
  1. +7 −7 tasks/compile.rake
View
14 tasks/compile.rake
@@ -1,14 +1,14 @@
CLEAN.include [
'tmp',
'**/*.{o,obj,class,pdb,lib,def,exp,log,rbc}',
- 'ext/redcloth_scan/**/redcloth_*.rb',
+ 'ext/redcloth_scan/**/redcloth_*.rb',
'ext/redcloth_scan/Makefile', 'ext/redcloth_scan/extconf.rb',
]
CLOBBER.include [
'pkg',
'**/*.{c,java}',
- 'lib/**/*.{bundle,so,o,obj,pdb,lib,def,exp,jar}',
- 'lib/redcloth_scan.rb',
+ 'lib/**/*.{bundle,so,o,obj,pdb,lib,def,exp,jar}',
+ 'lib/redcloth_scan.rb',
]
# Load the Gem specification for the current platform (Ruby or JRuby).
@@ -22,7 +22,7 @@ require File.dirname(__FILE__) + '/ragel_extension_task'
if defined?(JRUBY_VERSION)
Rake::JavaRagelExtensionTask.new('redcloth_scan', gemspec)
-else
+else
extconf = "ext/redcloth_scan/extconf.rb"
file extconf do
FileUtils.mkdir(File.dirname(extconf)) unless File.directory?(File.dirname(extconf))
@@ -30,7 +30,7 @@ else
io.write(<<-EOF)
require 'mkmf'
CONFIG['warnflags'].gsub!(/-Wshorten-64-to-32/, '') if CONFIG['warnflags']
-$CFLAGS << ' -O0 -Wall -Werror' if CONFIG['CC'] =~ /gcc/
+$CFLAGS << ' -O0 -Wall ' if CONFIG['CC'] =~ /gcc/
dir_config("redcloth_scan")
have_library("c", "main")
create_makefile("redcloth_scan")
@@ -38,10 +38,10 @@ create_makefile("redcloth_scan")
end
end
- Rake::RagelExtensionTask.new("redcloth_scan", gemspec) do |ext|
+ Rake::RagelExtensionTask.new("redcloth_scan", gemspec) do |ext|
if ENV['RUBY_CC_VERSION']
ext.cross_compile = true
ext.cross_platform = ['i386-mingw32', 'i386-mswin32-60']
end
end
-end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.