extpp 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/Rakefile +10 -10
- data/doc/text/news.md +14 -0
- data/ext/extpp/class.cpp +19 -6
- data/ext/extpp/extconf.rb +8 -2
- data/ext/extpp/object.cpp +1 -1
- data/ext/extpp/protect.cpp +12 -0
- data/include/ruby.hpp +1 -0
- data/include/ruby/cast.hpp +37 -13
- data/include/ruby/class.hpp +2 -1
- data/include/ruby/object.hpp +4 -1
- data/include/ruby/protect.hpp +37 -0
- data/include/ruby/type.hpp +3 -1
- data/lib/extpp.rb +1 -1
- data/lib/extpp/compiler.rb +44 -10
- data/lib/extpp/version.rb +1 -1
- data/test/fixtures/cast/Makefile +15 -13
- data/test/fixtures/cast/cast.cpp +7 -0
- data/test/fixtures/cast/cast.o +0 -0
- data/test/fixtures/cast/cast.so +0 -0
- data/test/fixtures/cast/mkmf.log +133 -1
- data/test/fixtures/class/Makefile +15 -13
- data/test/fixtures/class/class.o +0 -0
- data/test/fixtures/class/class.so +0 -0
- data/test/fixtures/class/mkmf.log +133 -1
- data/test/fixtures/object/Makefile +15 -13
- data/test/fixtures/object/mkmf.log +133 -1
- data/test/fixtures/object/object.o +0 -0
- data/test/fixtures/object/object.so +0 -0
- data/test/fixtures/protect/Makefile +269 -0
- data/test/fixtures/protect/extconf.rb +4 -0
- data/test/fixtures/protect/mkmf.log +140 -0
- data/test/fixtures/protect/protect.cpp +70 -0
- data/test/fixtures/protect/protect.o +0 -0
- data/test/fixtures/protect/protect.so +0 -0
- data/test/test-cast.rb +4 -0
- data/test/test-protect.rb +54 -0
- metadata +19 -45
data/lib/extpp/version.rb
CHANGED
data/test/fixtures/cast/Makefile
CHANGED
@@ -12,9 +12,9 @@ NULLCMD = :
|
|
12
12
|
#### Start of system configuration section. ####
|
13
13
|
|
14
14
|
srcdir = .
|
15
|
-
topdir = /tmp/local/include/ruby-2.
|
15
|
+
topdir = /tmp/local/include/ruby-2.7.0
|
16
16
|
hdrdir = $(topdir)
|
17
|
-
arch_hdrdir = /tmp/local/include/ruby-2.
|
17
|
+
arch_hdrdir = /tmp/local/include/ruby-2.7.0/x86_64-linux
|
18
18
|
PATH_SEPARATOR = :
|
19
19
|
VPATH = $(srcdir):$(arch_hdrdir)/ruby:$(hdrdir)/ruby
|
20
20
|
prefix = $(DESTDIR)/tmp/local
|
@@ -64,12 +64,13 @@ bindir = $(exec_prefix)/bin
|
|
64
64
|
archdir = $(rubyarchdir)
|
65
65
|
|
66
66
|
|
67
|
+
CC_WRAPPER =
|
67
68
|
CC = gcc
|
68
69
|
CXX = g++
|
69
|
-
LIBRUBY = $(
|
70
|
+
LIBRUBY = $(LIBRUBY_SO)
|
70
71
|
LIBRUBY_A = lib$(RUBY_SO_NAME)-static.a
|
71
|
-
LIBRUBYARG_SHARED = -Wl,-rpath,$(libdir) -L$(libdir)
|
72
|
-
LIBRUBYARG_STATIC = -Wl,-rpath,$(libdir) -L$(libdir) -l$(RUBY_SO_NAME)-static
|
72
|
+
LIBRUBYARG_SHARED = -Wl,-rpath,$(libdir) -L$(libdir) -l$(RUBY_SO_NAME)
|
73
|
+
LIBRUBYARG_STATIC = -Wl,-rpath,$(libdir) -L$(libdir) -l$(RUBY_SO_NAME)-static $(MAINLIBS)
|
73
74
|
empty =
|
74
75
|
OUTFLAG = -o $(empty)
|
75
76
|
COUTFLAG = -o $(empty)
|
@@ -78,16 +79,17 @@ CSRCFLAG = $(empty)
|
|
78
79
|
RUBY_EXTCONF_H =
|
79
80
|
cflags = $(optflags) $(debugflags) $(warnflags)
|
80
81
|
cxxflags = $(optflags) $(debugflags) $(warnflags)
|
81
|
-
optflags = -
|
82
|
+
optflags = -O3 -march=native
|
82
83
|
debugflags = -ggdb3
|
83
|
-
warnflags = -Wall -Wextra -
|
84
|
+
warnflags = -Wall -Wextra -Wdeprecated-declarations -Wduplicated-cond -Wimplicit-function-declaration -Wimplicit-int -Wmisleading-indentation -Wpointer-arith -Wwrite-strings -Wimplicit-fallthrough=0 -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-packed-bitfield-compat -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wsuggest-attribute=format -Wsuggest-attribute=noreturn -Wunused-variable
|
85
|
+
cppflags =
|
84
86
|
CCDLFLAGS = -fPIC
|
85
|
-
CFLAGS = $(CCDLFLAGS) $(cflags) $(ARCH_FLAG)
|
87
|
+
CFLAGS = $(CCDLFLAGS) $(cflags) -fPIC $(ARCH_FLAG)
|
86
88
|
INCFLAGS = -I. -I$(arch_hdrdir) -I$(hdrdir)/ruby/backward -I$(hdrdir) -I$(srcdir) -I/home/kou/work/ruby/extpp/include
|
87
89
|
DEFS =
|
88
90
|
CPPFLAGS = $(DEFS) $(cppflags)
|
89
|
-
CXXFLAGS = $(CCDLFLAGS)
|
90
|
-
ldflags = -L. -fstack-protector -rdynamic -Wl,-export-dynamic
|
91
|
+
CXXFLAGS = $(CCDLFLAGS) -O3 -march\=native -ggdb3 -Wall -Wextra -Wdeprecated-declarations -Wduplicated-cond -Wmisleading-indentation -Wpointer-arith -Wwrite-strings -Wimplicit-fallthrough\=0 -Wmissing-noreturn -Wno-cast-function-type -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-packed-bitfield-compat -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wsuggest-attribute\=format -Wsuggest-attribute\=noreturn -Wunused-variable $(ARCH_FLAG)
|
92
|
+
ldflags = -L. -fstack-protector-strong -rdynamic -Wl,-export-dynamic
|
91
93
|
dldflags = -Wl,--compress-debug-sections=zlib
|
92
94
|
ARCH_FLAG =
|
93
95
|
DLDFLAGS = $(ldflags) $(dldflags) $(ARCH_FLAG)
|
@@ -105,7 +107,7 @@ RUBY_BASE_NAME = ruby
|
|
105
107
|
|
106
108
|
arch = x86_64-linux
|
107
109
|
sitearch = $(arch)
|
108
|
-
ruby_version = 2.
|
110
|
+
ruby_version = 2.7.0
|
109
111
|
ruby = $(bindir)/$(RUBY_BASE_NAME)
|
110
112
|
RUBY = $(ruby)
|
111
113
|
ruby_headers = $(hdrdir)/ruby.h $(hdrdir)/ruby/backward.h $(hdrdir)/ruby/ruby.h $(hdrdir)/ruby/defines.h $(hdrdir)/ruby/missing.h $(hdrdir)/ruby/intern.h $(hdrdir)/ruby/st.h $(hdrdir)/ruby/subst.h $(arch_hdrdir)/ruby/config.h
|
@@ -135,7 +137,7 @@ extout =
|
|
135
137
|
extout_prefix =
|
136
138
|
target_prefix =
|
137
139
|
LOCAL_LIBS =
|
138
|
-
LIBS =
|
140
|
+
LIBS = $(LIBRUBYARG_SHARED) -lm -lc /home/kou/work/ruby/extpp/ext/extpp/libruby-extpp.so
|
139
141
|
ORIG_SRCS = cast.cpp
|
140
142
|
SRCS = $(ORIG_SRCS)
|
141
143
|
OBJS = cast.o
|
@@ -263,5 +265,5 @@ $(TARGET_SO): $(OBJS) Makefile
|
|
263
265
|
|
264
266
|
$(OBJS): $(HDRS) $(ruby_headers)
|
265
267
|
|
266
|
-
extpp_headers = /home/kou/work/ruby/extpp/include/ruby/object.hpp /home/kou/work/ruby/extpp/include/ruby/class.hpp /home/kou/work/ruby/extpp/include/ruby/cast.hpp /home/kou/work/ruby/extpp/include/ruby/type.hpp /home/kou/work/ruby/extpp/include/ruby.hpp
|
268
|
+
extpp_headers = /home/kou/work/ruby/extpp/include/ruby/object.hpp /home/kou/work/ruby/extpp/include/ruby/class.hpp /home/kou/work/ruby/extpp/include/ruby/protect.hpp /home/kou/work/ruby/extpp/include/ruby/cast.hpp /home/kou/work/ruby/extpp/include/ruby/type.hpp /home/kou/work/ruby/extpp/include/ruby.hpp
|
267
269
|
$(OBJS): $(extpp_headers)
|
data/test/fixtures/cast/cast.cpp
CHANGED
@@ -28,5 +28,12 @@ Init_cast(void)
|
|
28
28
|
VALUE rb_string;
|
29
29
|
rb_scan_args(argc, argv, "1", &rb_string);
|
30
30
|
return rb::cast<rb::Object>(rb::cast<const char *>(rb::Object(rb_string)));
|
31
|
+
}).
|
32
|
+
define_method("cast_std_string",
|
33
|
+
[](VALUE self, int argc, VALUE *argv) -> VALUE {
|
34
|
+
VALUE rb_string;
|
35
|
+
rb_scan_args(argc, argv, "1", &rb_string);
|
36
|
+
const auto std_string = rb::cast<std::string>(rb::Object(rb_string));
|
37
|
+
return rb::cast<rb::Object>(std_string);
|
31
38
|
});
|
32
39
|
}
|
data/test/fixtures/cast/cast.o
CHANGED
Binary file
|
data/test/fixtures/cast/cast.so
CHANGED
Binary file
|
data/test/fixtures/cast/mkmf.log
CHANGED
@@ -2,7 +2,139 @@ check_debug_build: checking --enable-debug-build option... --------------------
|
|
2
2
|
|
3
3
|
--------------------
|
4
4
|
|
5
|
-
check_version: checking g++ version... --------------------
|
5
|
+
check_version: checking g++ version... -------------------- 8.2
|
6
6
|
|
7
7
|
--------------------
|
8
8
|
|
9
|
+
"g++ -Werror -Wall -c conftest.cpp"
|
10
|
+
checked program was:
|
11
|
+
/* begin */
|
12
|
+
1: int main(void) {return 0;}/* end */
|
13
|
+
|
14
|
+
"g++ -Werror -Wextra -c conftest.cpp"
|
15
|
+
checked program was:
|
16
|
+
/* begin */
|
17
|
+
1: int main(void) {return 0;}/* end */
|
18
|
+
|
19
|
+
"g++ -Werror -Wdeprecated-declarations -c conftest.cpp"
|
20
|
+
checked program was:
|
21
|
+
/* begin */
|
22
|
+
1: int main(void) {return 0;}/* end */
|
23
|
+
|
24
|
+
"g++ -Werror -Wduplicated-cond -c conftest.cpp"
|
25
|
+
checked program was:
|
26
|
+
/* begin */
|
27
|
+
1: int main(void) {return 0;}/* end */
|
28
|
+
|
29
|
+
"g++ -Werror -Wimplicit-function-declaration -c conftest.cpp"
|
30
|
+
cc1plus: error: command line option ‘-Wimplicit-function-declaration’ is valid for C/ObjC but not for C++ [-Werror]
|
31
|
+
cc1plus: all warnings being treated as errors
|
32
|
+
checked program was:
|
33
|
+
/* begin */
|
34
|
+
1: int main(void) {return 0;}/* end */
|
35
|
+
|
36
|
+
"g++ -Werror -Wimplicit-int -c conftest.cpp"
|
37
|
+
cc1plus: error: command line option ‘-Wimplicit-int’ is valid for C/ObjC but not for C++ [-Werror]
|
38
|
+
cc1plus: all warnings being treated as errors
|
39
|
+
checked program was:
|
40
|
+
/* begin */
|
41
|
+
1: int main(void) {return 0;}/* end */
|
42
|
+
|
43
|
+
"g++ -Werror -Wmisleading-indentation -c conftest.cpp"
|
44
|
+
checked program was:
|
45
|
+
/* begin */
|
46
|
+
1: int main(void) {return 0;}/* end */
|
47
|
+
|
48
|
+
"g++ -Werror -Wpointer-arith -c conftest.cpp"
|
49
|
+
checked program was:
|
50
|
+
/* begin */
|
51
|
+
1: int main(void) {return 0;}/* end */
|
52
|
+
|
53
|
+
"g++ -Werror -Wwrite-strings -c conftest.cpp"
|
54
|
+
checked program was:
|
55
|
+
/* begin */
|
56
|
+
1: int main(void) {return 0;}/* end */
|
57
|
+
|
58
|
+
"g++ -Werror -Wimplicit-fallthrough=0 -c conftest.cpp"
|
59
|
+
checked program was:
|
60
|
+
/* begin */
|
61
|
+
1: int main(void) {return 0;}/* end */
|
62
|
+
|
63
|
+
"g++ -Werror -Wmissing-noreturn -c conftest.cpp"
|
64
|
+
checked program was:
|
65
|
+
/* begin */
|
66
|
+
1: int main(void) {return 0;}/* end */
|
67
|
+
|
68
|
+
"g++ -Werror -Wcast-function-type -c conftest.cpp"
|
69
|
+
checked program was:
|
70
|
+
/* begin */
|
71
|
+
1: int main(void) {return 0;}/* end */
|
72
|
+
|
73
|
+
"g++ -Werror -Wconstant-logical-operand -c conftest.cpp"
|
74
|
+
g++: error: unrecognized command line option ‘-Wconstant-logical-operand’; did you mean ‘-Wno-tautological-compare’?
|
75
|
+
checked program was:
|
76
|
+
/* begin */
|
77
|
+
1: int main(void) {return 0;}/* end */
|
78
|
+
|
79
|
+
"g++ -Werror -Wlong-long -c conftest.cpp"
|
80
|
+
checked program was:
|
81
|
+
/* begin */
|
82
|
+
1: int main(void) {return 0;}/* end */
|
83
|
+
|
84
|
+
"g++ -Werror -Wmissing-field-initializers -c conftest.cpp"
|
85
|
+
checked program was:
|
86
|
+
/* begin */
|
87
|
+
1: int main(void) {return 0;}/* end */
|
88
|
+
|
89
|
+
"g++ -Werror -Woverlength-strings -c conftest.cpp"
|
90
|
+
checked program was:
|
91
|
+
/* begin */
|
92
|
+
1: int main(void) {return 0;}/* end */
|
93
|
+
|
94
|
+
"g++ -Werror -Wpacked-bitfield-compat -c conftest.cpp"
|
95
|
+
checked program was:
|
96
|
+
/* begin */
|
97
|
+
1: int main(void) {return 0;}/* end */
|
98
|
+
|
99
|
+
"g++ -Werror -Wparentheses-equality -c conftest.cpp"
|
100
|
+
g++: error: unrecognized command line option ‘-Wparentheses-equality’; did you mean ‘-Wparentheses’?
|
101
|
+
checked program was:
|
102
|
+
/* begin */
|
103
|
+
1: int main(void) {return 0;}/* end */
|
104
|
+
|
105
|
+
"g++ -Werror -Wself-assign -c conftest.cpp"
|
106
|
+
g++: error: unrecognized command line option ‘-Wself-assign’; did you mean ‘-Wcast-align’?
|
107
|
+
checked program was:
|
108
|
+
/* begin */
|
109
|
+
1: int main(void) {return 0;}/* end */
|
110
|
+
|
111
|
+
"g++ -Werror -Wtautological-compare -c conftest.cpp"
|
112
|
+
checked program was:
|
113
|
+
/* begin */
|
114
|
+
1: int main(void) {return 0;}/* end */
|
115
|
+
|
116
|
+
"g++ -Werror -Wunused-parameter -c conftest.cpp"
|
117
|
+
checked program was:
|
118
|
+
/* begin */
|
119
|
+
1: int main(void) {return 0;}/* end */
|
120
|
+
|
121
|
+
"g++ -Werror -Wunused-value -c conftest.cpp"
|
122
|
+
checked program was:
|
123
|
+
/* begin */
|
124
|
+
1: int main(void) {return 0;}/* end */
|
125
|
+
|
126
|
+
"g++ -Werror -Wsuggest-attribute=format -c conftest.cpp"
|
127
|
+
checked program was:
|
128
|
+
/* begin */
|
129
|
+
1: int main(void) {return 0;}/* end */
|
130
|
+
|
131
|
+
"g++ -Werror -Wsuggest-attribute=noreturn -c conftest.cpp"
|
132
|
+
checked program was:
|
133
|
+
/* begin */
|
134
|
+
1: int main(void) {return 0;}/* end */
|
135
|
+
|
136
|
+
"g++ -Werror -Wunused-variable -c conftest.cpp"
|
137
|
+
checked program was:
|
138
|
+
/* begin */
|
139
|
+
1: int main(void) {return 0;}/* end */
|
140
|
+
|
@@ -12,9 +12,9 @@ NULLCMD = :
|
|
12
12
|
#### Start of system configuration section. ####
|
13
13
|
|
14
14
|
srcdir = .
|
15
|
-
topdir = /tmp/local/include/ruby-2.
|
15
|
+
topdir = /tmp/local/include/ruby-2.7.0
|
16
16
|
hdrdir = $(topdir)
|
17
|
-
arch_hdrdir = /tmp/local/include/ruby-2.
|
17
|
+
arch_hdrdir = /tmp/local/include/ruby-2.7.0/x86_64-linux
|
18
18
|
PATH_SEPARATOR = :
|
19
19
|
VPATH = $(srcdir):$(arch_hdrdir)/ruby:$(hdrdir)/ruby
|
20
20
|
prefix = $(DESTDIR)/tmp/local
|
@@ -64,12 +64,13 @@ bindir = $(exec_prefix)/bin
|
|
64
64
|
archdir = $(rubyarchdir)
|
65
65
|
|
66
66
|
|
67
|
+
CC_WRAPPER =
|
67
68
|
CC = gcc
|
68
69
|
CXX = g++
|
69
|
-
LIBRUBY = $(
|
70
|
+
LIBRUBY = $(LIBRUBY_SO)
|
70
71
|
LIBRUBY_A = lib$(RUBY_SO_NAME)-static.a
|
71
|
-
LIBRUBYARG_SHARED = -Wl,-rpath,$(libdir) -L$(libdir)
|
72
|
-
LIBRUBYARG_STATIC = -Wl,-rpath,$(libdir) -L$(libdir) -l$(RUBY_SO_NAME)-static
|
72
|
+
LIBRUBYARG_SHARED = -Wl,-rpath,$(libdir) -L$(libdir) -l$(RUBY_SO_NAME)
|
73
|
+
LIBRUBYARG_STATIC = -Wl,-rpath,$(libdir) -L$(libdir) -l$(RUBY_SO_NAME)-static $(MAINLIBS)
|
73
74
|
empty =
|
74
75
|
OUTFLAG = -o $(empty)
|
75
76
|
COUTFLAG = -o $(empty)
|
@@ -78,16 +79,17 @@ CSRCFLAG = $(empty)
|
|
78
79
|
RUBY_EXTCONF_H =
|
79
80
|
cflags = $(optflags) $(debugflags) $(warnflags)
|
80
81
|
cxxflags = $(optflags) $(debugflags) $(warnflags)
|
81
|
-
optflags = -
|
82
|
+
optflags = -O3 -march=native
|
82
83
|
debugflags = -ggdb3
|
83
|
-
warnflags = -Wall -Wextra -
|
84
|
+
warnflags = -Wall -Wextra -Wdeprecated-declarations -Wduplicated-cond -Wimplicit-function-declaration -Wimplicit-int -Wmisleading-indentation -Wpointer-arith -Wwrite-strings -Wimplicit-fallthrough=0 -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-packed-bitfield-compat -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wsuggest-attribute=format -Wsuggest-attribute=noreturn -Wunused-variable
|
85
|
+
cppflags =
|
84
86
|
CCDLFLAGS = -fPIC
|
85
|
-
CFLAGS = $(CCDLFLAGS) $(cflags) $(ARCH_FLAG)
|
87
|
+
CFLAGS = $(CCDLFLAGS) $(cflags) -fPIC $(ARCH_FLAG)
|
86
88
|
INCFLAGS = -I. -I$(arch_hdrdir) -I$(hdrdir)/ruby/backward -I$(hdrdir) -I$(srcdir) -I/home/kou/work/ruby/extpp/include
|
87
89
|
DEFS =
|
88
90
|
CPPFLAGS = $(DEFS) $(cppflags)
|
89
|
-
CXXFLAGS = $(CCDLFLAGS)
|
90
|
-
ldflags = -L. -fstack-protector -rdynamic -Wl,-export-dynamic
|
91
|
+
CXXFLAGS = $(CCDLFLAGS) -O3 -march\=native -ggdb3 -Wall -Wextra -Wdeprecated-declarations -Wduplicated-cond -Wmisleading-indentation -Wpointer-arith -Wwrite-strings -Wimplicit-fallthrough\=0 -Wmissing-noreturn -Wno-cast-function-type -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-packed-bitfield-compat -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wsuggest-attribute\=format -Wsuggest-attribute\=noreturn -Wunused-variable $(ARCH_FLAG)
|
92
|
+
ldflags = -L. -fstack-protector-strong -rdynamic -Wl,-export-dynamic
|
91
93
|
dldflags = -Wl,--compress-debug-sections=zlib
|
92
94
|
ARCH_FLAG =
|
93
95
|
DLDFLAGS = $(ldflags) $(dldflags) $(ARCH_FLAG)
|
@@ -105,7 +107,7 @@ RUBY_BASE_NAME = ruby
|
|
105
107
|
|
106
108
|
arch = x86_64-linux
|
107
109
|
sitearch = $(arch)
|
108
|
-
ruby_version = 2.
|
110
|
+
ruby_version = 2.7.0
|
109
111
|
ruby = $(bindir)/$(RUBY_BASE_NAME)
|
110
112
|
RUBY = $(ruby)
|
111
113
|
ruby_headers = $(hdrdir)/ruby.h $(hdrdir)/ruby/backward.h $(hdrdir)/ruby/ruby.h $(hdrdir)/ruby/defines.h $(hdrdir)/ruby/missing.h $(hdrdir)/ruby/intern.h $(hdrdir)/ruby/st.h $(hdrdir)/ruby/subst.h $(arch_hdrdir)/ruby/config.h
|
@@ -135,7 +137,7 @@ extout =
|
|
135
137
|
extout_prefix =
|
136
138
|
target_prefix =
|
137
139
|
LOCAL_LIBS =
|
138
|
-
LIBS =
|
140
|
+
LIBS = $(LIBRUBYARG_SHARED) -lm -lc /home/kou/work/ruby/extpp/ext/extpp/libruby-extpp.so
|
139
141
|
ORIG_SRCS = class.cpp
|
140
142
|
SRCS = $(ORIG_SRCS)
|
141
143
|
OBJS = class.o
|
@@ -263,5 +265,5 @@ $(TARGET_SO): $(OBJS) Makefile
|
|
263
265
|
|
264
266
|
$(OBJS): $(HDRS) $(ruby_headers)
|
265
267
|
|
266
|
-
extpp_headers = /home/kou/work/ruby/extpp/include/ruby/object.hpp /home/kou/work/ruby/extpp/include/ruby/class.hpp /home/kou/work/ruby/extpp/include/ruby/cast.hpp /home/kou/work/ruby/extpp/include/ruby/type.hpp /home/kou/work/ruby/extpp/include/ruby.hpp
|
268
|
+
extpp_headers = /home/kou/work/ruby/extpp/include/ruby/object.hpp /home/kou/work/ruby/extpp/include/ruby/class.hpp /home/kou/work/ruby/extpp/include/ruby/protect.hpp /home/kou/work/ruby/extpp/include/ruby/cast.hpp /home/kou/work/ruby/extpp/include/ruby/type.hpp /home/kou/work/ruby/extpp/include/ruby.hpp
|
267
269
|
$(OBJS): $(extpp_headers)
|
data/test/fixtures/class/class.o
CHANGED
Binary file
|
Binary file
|
@@ -2,7 +2,139 @@ check_debug_build: checking --enable-debug-build option... --------------------
|
|
2
2
|
|
3
3
|
--------------------
|
4
4
|
|
5
|
-
check_version: checking g++ version... --------------------
|
5
|
+
check_version: checking g++ version... -------------------- 8.2
|
6
6
|
|
7
7
|
--------------------
|
8
8
|
|
9
|
+
"g++ -Werror -Wall -c conftest.cpp"
|
10
|
+
checked program was:
|
11
|
+
/* begin */
|
12
|
+
1: int main(void) {return 0;}/* end */
|
13
|
+
|
14
|
+
"g++ -Werror -Wextra -c conftest.cpp"
|
15
|
+
checked program was:
|
16
|
+
/* begin */
|
17
|
+
1: int main(void) {return 0;}/* end */
|
18
|
+
|
19
|
+
"g++ -Werror -Wdeprecated-declarations -c conftest.cpp"
|
20
|
+
checked program was:
|
21
|
+
/* begin */
|
22
|
+
1: int main(void) {return 0;}/* end */
|
23
|
+
|
24
|
+
"g++ -Werror -Wduplicated-cond -c conftest.cpp"
|
25
|
+
checked program was:
|
26
|
+
/* begin */
|
27
|
+
1: int main(void) {return 0;}/* end */
|
28
|
+
|
29
|
+
"g++ -Werror -Wimplicit-function-declaration -c conftest.cpp"
|
30
|
+
cc1plus: error: command line option ‘-Wimplicit-function-declaration’ is valid for C/ObjC but not for C++ [-Werror]
|
31
|
+
cc1plus: all warnings being treated as errors
|
32
|
+
checked program was:
|
33
|
+
/* begin */
|
34
|
+
1: int main(void) {return 0;}/* end */
|
35
|
+
|
36
|
+
"g++ -Werror -Wimplicit-int -c conftest.cpp"
|
37
|
+
cc1plus: error: command line option ‘-Wimplicit-int’ is valid for C/ObjC but not for C++ [-Werror]
|
38
|
+
cc1plus: all warnings being treated as errors
|
39
|
+
checked program was:
|
40
|
+
/* begin */
|
41
|
+
1: int main(void) {return 0;}/* end */
|
42
|
+
|
43
|
+
"g++ -Werror -Wmisleading-indentation -c conftest.cpp"
|
44
|
+
checked program was:
|
45
|
+
/* begin */
|
46
|
+
1: int main(void) {return 0;}/* end */
|
47
|
+
|
48
|
+
"g++ -Werror -Wpointer-arith -c conftest.cpp"
|
49
|
+
checked program was:
|
50
|
+
/* begin */
|
51
|
+
1: int main(void) {return 0;}/* end */
|
52
|
+
|
53
|
+
"g++ -Werror -Wwrite-strings -c conftest.cpp"
|
54
|
+
checked program was:
|
55
|
+
/* begin */
|
56
|
+
1: int main(void) {return 0;}/* end */
|
57
|
+
|
58
|
+
"g++ -Werror -Wimplicit-fallthrough=0 -c conftest.cpp"
|
59
|
+
checked program was:
|
60
|
+
/* begin */
|
61
|
+
1: int main(void) {return 0;}/* end */
|
62
|
+
|
63
|
+
"g++ -Werror -Wmissing-noreturn -c conftest.cpp"
|
64
|
+
checked program was:
|
65
|
+
/* begin */
|
66
|
+
1: int main(void) {return 0;}/* end */
|
67
|
+
|
68
|
+
"g++ -Werror -Wcast-function-type -c conftest.cpp"
|
69
|
+
checked program was:
|
70
|
+
/* begin */
|
71
|
+
1: int main(void) {return 0;}/* end */
|
72
|
+
|
73
|
+
"g++ -Werror -Wconstant-logical-operand -c conftest.cpp"
|
74
|
+
g++: error: unrecognized command line option ‘-Wconstant-logical-operand’; did you mean ‘-Wno-tautological-compare’?
|
75
|
+
checked program was:
|
76
|
+
/* begin */
|
77
|
+
1: int main(void) {return 0;}/* end */
|
78
|
+
|
79
|
+
"g++ -Werror -Wlong-long -c conftest.cpp"
|
80
|
+
checked program was:
|
81
|
+
/* begin */
|
82
|
+
1: int main(void) {return 0;}/* end */
|
83
|
+
|
84
|
+
"g++ -Werror -Wmissing-field-initializers -c conftest.cpp"
|
85
|
+
checked program was:
|
86
|
+
/* begin */
|
87
|
+
1: int main(void) {return 0;}/* end */
|
88
|
+
|
89
|
+
"g++ -Werror -Woverlength-strings -c conftest.cpp"
|
90
|
+
checked program was:
|
91
|
+
/* begin */
|
92
|
+
1: int main(void) {return 0;}/* end */
|
93
|
+
|
94
|
+
"g++ -Werror -Wpacked-bitfield-compat -c conftest.cpp"
|
95
|
+
checked program was:
|
96
|
+
/* begin */
|
97
|
+
1: int main(void) {return 0;}/* end */
|
98
|
+
|
99
|
+
"g++ -Werror -Wparentheses-equality -c conftest.cpp"
|
100
|
+
g++: error: unrecognized command line option ‘-Wparentheses-equality’; did you mean ‘-Wparentheses’?
|
101
|
+
checked program was:
|
102
|
+
/* begin */
|
103
|
+
1: int main(void) {return 0;}/* end */
|
104
|
+
|
105
|
+
"g++ -Werror -Wself-assign -c conftest.cpp"
|
106
|
+
g++: error: unrecognized command line option ‘-Wself-assign’; did you mean ‘-Wcast-align’?
|
107
|
+
checked program was:
|
108
|
+
/* begin */
|
109
|
+
1: int main(void) {return 0;}/* end */
|
110
|
+
|
111
|
+
"g++ -Werror -Wtautological-compare -c conftest.cpp"
|
112
|
+
checked program was:
|
113
|
+
/* begin */
|
114
|
+
1: int main(void) {return 0;}/* end */
|
115
|
+
|
116
|
+
"g++ -Werror -Wunused-parameter -c conftest.cpp"
|
117
|
+
checked program was:
|
118
|
+
/* begin */
|
119
|
+
1: int main(void) {return 0;}/* end */
|
120
|
+
|
121
|
+
"g++ -Werror -Wunused-value -c conftest.cpp"
|
122
|
+
checked program was:
|
123
|
+
/* begin */
|
124
|
+
1: int main(void) {return 0;}/* end */
|
125
|
+
|
126
|
+
"g++ -Werror -Wsuggest-attribute=format -c conftest.cpp"
|
127
|
+
checked program was:
|
128
|
+
/* begin */
|
129
|
+
1: int main(void) {return 0;}/* end */
|
130
|
+
|
131
|
+
"g++ -Werror -Wsuggest-attribute=noreturn -c conftest.cpp"
|
132
|
+
checked program was:
|
133
|
+
/* begin */
|
134
|
+
1: int main(void) {return 0;}/* end */
|
135
|
+
|
136
|
+
"g++ -Werror -Wunused-variable -c conftest.cpp"
|
137
|
+
checked program was:
|
138
|
+
/* begin */
|
139
|
+
1: int main(void) {return 0;}/* end */
|
140
|
+
|