Skip to content

Commit ae769ea

Browse files
committed
Use C++17
1 parent 1a1fcd3 commit ae769ea

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

bindings/ruby/ext/extconf.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
require 'mkmf'
22

33
# need to use c++ compiler flags
4-
$CXXFLAGS << ' -std=c++11'
4+
$CXXFLAGS << ' -std=c++17'
55

66
$LDFLAGS << ' -lstdc++'
77

@@ -35,10 +35,10 @@
3535
$GGML_METAL_EMBED_LIBRARY = true
3636
end
3737

38-
$MK_CPPFLAGS = '-Iggml/include -Iggml/src -Iinclude -Isrc -Iexamples'
38+
$MK_CPPFLAGS = '-Iggml/include -Iggml/src -Iggml/src/ggml-cpu -Iinclude -Isrc -Iexamples'
3939
$MK_CFLAGS = '-std=c11 -fPIC'
40-
$MK_CXXFLAGS = '-std=c++11 -fPIC'
41-
$MK_NVCCFLAGS = '-std=c++11'
40+
$MK_CXXFLAGS = '-std=c++17 -fPIC'
41+
$MK_NVCCFLAGS = '-std=c++17'
4242
$MK_LDFLAGS = ''
4343

4444
$OBJ_GGML = []

0 commit comments

Comments
 (0)