diff --git a/bindings/ruby/ext/extconf.rb b/bindings/ruby/ext/extconf.rb index 6d76a7cd9ac..59388ffe0bc 100644 --- a/bindings/ruby/ext/extconf.rb +++ b/bindings/ruby/ext/extconf.rb @@ -1,7 +1,7 @@ require 'mkmf' # need to use c++ compiler flags -$CXXFLAGS << ' -std=c++11' +$CXXFLAGS << ' -std=c++17' $LDFLAGS << ' -lstdc++' @@ -35,10 +35,10 @@ $GGML_METAL_EMBED_LIBRARY = true end -$MK_CPPFLAGS = '-Iggml/include -Iggml/src -Iinclude -Isrc -Iexamples' +$MK_CPPFLAGS = '-Iggml/include -Iggml/src -Iggml/src/ggml-cpu -Iinclude -Isrc -Iexamples' $MK_CFLAGS = '-std=c11 -fPIC' -$MK_CXXFLAGS = '-std=c++11 -fPIC' -$MK_NVCCFLAGS = '-std=c++11' +$MK_CXXFLAGS = '-std=c++17 -fPIC' +$MK_NVCCFLAGS = '-std=c++17' $MK_LDFLAGS = '' $OBJ_GGML = []