mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Merge pull request #2176 from cremno/msvc-treat-implicit-function-declaration-as-error
MSVC: treat implicit function decl. as error
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
MRuby::Toolchain.new(:visualcpp) do |conf|
|
||||
[conf.cc].each do |cc|
|
||||
cc.command = ENV['CC'] || 'cl.exe'
|
||||
cc.flags = [ENV['CFLAGS'] || %w(/c /nologo /W3 /Zi /MD /O2 /D_CRT_SECURE_NO_WARNINGS)]
|
||||
# C4013: implicit function declaration
|
||||
cc.flags = [ENV['CFLAGS'] || %w(/c /nologo /W3 /we4013 /Zi /MD /O2 /D_CRT_SECURE_NO_WARNINGS)]
|
||||
cc.include_paths = ["#{MRUBY_ROOT}/include"]
|
||||
cc.defines = %w(DISABLE_GEMS MRB_STACK_EXTEND_DOUBLING)
|
||||
cc.option_include_path = '/I%s'
|
||||
|
||||
Reference in New Issue
Block a user