Skip to content

Commit

Permalink
fix: add -Wno-narrowing to compiler flags so it compiles on modern sy…
Browse files Browse the repository at this point in the history
…stems
  • Loading branch information
Luka Dornhecker committed Nov 19, 2018
1 parent 6eabc2a commit fe35dec
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ext/cld/extconf.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#require 'mkmf'
#create_makefile('cld/cld')

ENV['CFLAGS'] = ENV['CFLAGS'].to_s + ' -Wno-narrowing'
ENV['CXXFLAGS'] = ENV['CXXFLAGS'].to_s + ' -Wno-narrowing'

system "./configure --prefix=#{Dir.pwd}" unless File.exists?('Makefile')

0 comments on commit fe35dec

Please sign in to comment.