archive_r_ruby 0.1.4 → 0.1.5
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 +4 -4
- data/LICENSE.txt +77 -77
- data/README.md +103 -103
- data/ext/archive_r/archive_r_ext.cc +1106 -1106
- data/ext/archive_r/extconf.rb +120 -120
- data/ext/archive_r/vendor/archive_r/LICENSE.txt +77 -77
- data/ext/archive_r/vendor/archive_r/include/archive_r/data_stream.h +52 -52
- data/ext/archive_r/vendor/archive_r/include/archive_r/entry.h +166 -166
- data/ext/archive_r/vendor/archive_r/include/archive_r/entry_fault.h +34 -34
- data/ext/archive_r/vendor/archive_r/include/archive_r/entry_metadata.h +56 -56
- data/ext/archive_r/vendor/archive_r/include/archive_r/multi_volume_stream_base.h +46 -46
- data/ext/archive_r/vendor/archive_r/include/archive_r/path_hierarchy.h +109 -109
- data/ext/archive_r/vendor/archive_r/include/archive_r/path_hierarchy_utils.h +37 -37
- data/ext/archive_r/vendor/archive_r/include/archive_r/platform_compat.h +19 -19
- data/ext/archive_r/vendor/archive_r/include/archive_r/traverser.h +122 -122
- data/ext/archive_r/vendor/archive_r/src/archive_stack_cursor.cc +330 -330
- data/ext/archive_r/vendor/archive_r/src/archive_stack_cursor.h +97 -97
- data/ext/archive_r/vendor/archive_r/src/archive_stack_orchestrator.cc +162 -162
- data/ext/archive_r/vendor/archive_r/src/archive_stack_orchestrator.h +54 -54
- data/ext/archive_r/vendor/archive_r/src/archive_type.cc +552 -552
- data/ext/archive_r/vendor/archive_r/src/archive_type.h +77 -77
- data/ext/archive_r/vendor/archive_r/src/data_stream.cc +35 -35
- data/ext/archive_r/vendor/archive_r/src/entry.cc +253 -253
- data/ext/archive_r/vendor/archive_r/src/entry_fault.cc +26 -26
- data/ext/archive_r/vendor/archive_r/src/entry_fault_error.cc +54 -54
- data/ext/archive_r/vendor/archive_r/src/entry_fault_error.h +32 -32
- data/ext/archive_r/vendor/archive_r/src/entry_impl.h +57 -57
- data/ext/archive_r/vendor/archive_r/src/multi_volume_manager.cc +81 -81
- data/ext/archive_r/vendor/archive_r/src/multi_volume_manager.h +41 -41
- data/ext/archive_r/vendor/archive_r/src/multi_volume_stream_base.cc +199 -199
- data/ext/archive_r/vendor/archive_r/src/path_hierarchy.cc +151 -151
- data/ext/archive_r/vendor/archive_r/src/path_hierarchy_utils.cc +304 -304
- data/ext/archive_r/vendor/archive_r/src/simple_profiler.h +120 -120
- data/ext/archive_r/vendor/archive_r/src/system_file_stream.cc +295 -295
- data/ext/archive_r/vendor/archive_r/src/system_file_stream.h +46 -46
- data/ext/archive_r/vendor/archive_r/src/traverser.cc +314 -314
- data/lib/archive_r.rb +105 -105
- metadata +2 -6
- data/ext/archive_r/Makefile +0 -273
- data/ext/archive_r/archive_r-x64-mingw-ucrt.def +0 -2
- data/ext/archive_r/archive_r_ext.o +0 -0
- data/ext/archive_r/mkmf.log +0 -40
data/lib/archive_r.rb
CHANGED
|
@@ -1,105 +1,105 @@
|
|
|
1
|
-
# SPDX-License-Identifier: MIT
|
|
2
|
-
# Copyright (c) 2025 archive_r Team
|
|
3
|
-
|
|
4
|
-
begin
|
|
5
|
-
# Windows/MSVC specific: Ensure dependent DLLs (like libarchive.dll) are found.
|
|
6
|
-
# If LIBARCHIVE_ROOT is set, add its bin directory to the DLL search path.
|
|
7
|
-
if RUBY_PLATFORM =~ /mswin|mingw|cygwin/
|
|
8
|
-
if ENV['LIBARCHIVE_ROOT']
|
|
9
|
-
bin_dir = File.join(ENV['LIBARCHIVE_ROOT'], 'bin')
|
|
10
|
-
if Dir.exist?(bin_dir)
|
|
11
|
-
if defined?(RubyInstaller::Runtime)
|
|
12
|
-
RubyInstaller::Runtime.add_dll_directory(bin_dir)
|
|
13
|
-
else
|
|
14
|
-
ENV['PATH'] = "#{bin_dir};#{ENV['PATH']}"
|
|
15
|
-
end
|
|
16
|
-
end
|
|
17
|
-
end
|
|
18
|
-
end
|
|
19
|
-
|
|
20
|
-
# Prefer the packaged gem layout (lib/archive_r/archive_r.so)
|
|
21
|
-
require_relative 'archive_r/archive_r'
|
|
22
|
-
rescue LoadError
|
|
23
|
-
begin
|
|
24
|
-
# Fallback to the local development layout (bindings/ruby/archive_r.so)
|
|
25
|
-
require_relative '../archive_r'
|
|
26
|
-
rescue LoadError
|
|
27
|
-
begin
|
|
28
|
-
# Fallback for Windows/MinGW where extension might be directly in lib/ or current dir
|
|
29
|
-
require 'archive_r/archive_r'
|
|
30
|
-
rescue LoadError
|
|
31
|
-
# Last resort: try requiring without directory prefix (common in some Windows setups)
|
|
32
|
-
require 'archive_r'
|
|
33
|
-
end
|
|
34
|
-
end
|
|
35
|
-
end
|
|
36
|
-
|
|
37
|
-
module Archive_r
|
|
38
|
-
VERSION = "0.1.3"
|
|
39
|
-
# Common archive formats excluding libarchive's mtree/raw pseudo formats
|
|
40
|
-
STANDARD_FORMATS = %w[
|
|
41
|
-
7zip ar cab cpio empty iso9660 lha rar tar warc xar zip
|
|
42
|
-
].freeze
|
|
43
|
-
|
|
44
|
-
def self.normalize_options(opts = nil)
|
|
45
|
-
options =
|
|
46
|
-
case opts
|
|
47
|
-
when nil
|
|
48
|
-
{}
|
|
49
|
-
when Hash
|
|
50
|
-
opts.dup
|
|
51
|
-
else
|
|
52
|
-
opts.to_hash.dup
|
|
53
|
-
end
|
|
54
|
-
|
|
55
|
-
options[:formats] = STANDARD_FORMATS unless options.key?(:formats)
|
|
56
|
-
options
|
|
57
|
-
end
|
|
58
|
-
|
|
59
|
-
def self.traverse(paths, **opts, &block)
|
|
60
|
-
options = normalize_options(opts)
|
|
61
|
-
|
|
62
|
-
if block
|
|
63
|
-
Traverser.open(paths, options) { |traverser| traverser.each(&block) }
|
|
64
|
-
else
|
|
65
|
-
Traverser.new(paths, options).each
|
|
66
|
-
end
|
|
67
|
-
end
|
|
68
|
-
|
|
69
|
-
class Entry
|
|
70
|
-
# Additional helper methods can be added here
|
|
71
|
-
|
|
72
|
-
def to_s
|
|
73
|
-
path
|
|
74
|
-
end
|
|
75
|
-
|
|
76
|
-
def inspect
|
|
77
|
-
"#<Archive_r::Entry path=#{path.inspect} size=#{size} depth=#{depth}>"
|
|
78
|
-
end
|
|
79
|
-
end
|
|
80
|
-
|
|
81
|
-
class Traverser
|
|
82
|
-
# Additional helper methods can be added here
|
|
83
|
-
|
|
84
|
-
class << self
|
|
85
|
-
alias_method :__archive_r_c_open, :open
|
|
86
|
-
|
|
87
|
-
def open(paths, opts = nil, &block)
|
|
88
|
-
__archive_r_c_open(paths, Archive_r.normalize_options(opts), &block)
|
|
89
|
-
end
|
|
90
|
-
end
|
|
91
|
-
|
|
92
|
-
alias_method :__archive_r_c_initialize, :initialize
|
|
93
|
-
|
|
94
|
-
def initialize(paths, opts = nil)
|
|
95
|
-
__archive_r_c_initialize(paths, Archive_r.normalize_options(opts))
|
|
96
|
-
end
|
|
97
|
-
|
|
98
|
-
# Count entries
|
|
99
|
-
def count
|
|
100
|
-
n = 0
|
|
101
|
-
each { |entry| n += 1 }
|
|
102
|
-
n
|
|
103
|
-
end
|
|
104
|
-
end
|
|
105
|
-
end
|
|
1
|
+
# SPDX-License-Identifier: MIT
|
|
2
|
+
# Copyright (c) 2025 archive_r Team
|
|
3
|
+
|
|
4
|
+
begin
|
|
5
|
+
# Windows/MSVC specific: Ensure dependent DLLs (like libarchive.dll) are found.
|
|
6
|
+
# If LIBARCHIVE_ROOT is set, add its bin directory to the DLL search path.
|
|
7
|
+
if RUBY_PLATFORM =~ /mswin|mingw|cygwin/
|
|
8
|
+
if ENV['LIBARCHIVE_ROOT']
|
|
9
|
+
bin_dir = File.join(ENV['LIBARCHIVE_ROOT'], 'bin')
|
|
10
|
+
if Dir.exist?(bin_dir)
|
|
11
|
+
if defined?(RubyInstaller::Runtime)
|
|
12
|
+
RubyInstaller::Runtime.add_dll_directory(bin_dir)
|
|
13
|
+
else
|
|
14
|
+
ENV['PATH'] = "#{bin_dir};#{ENV['PATH']}"
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
# Prefer the packaged gem layout (lib/archive_r/archive_r.so)
|
|
21
|
+
require_relative 'archive_r/archive_r'
|
|
22
|
+
rescue LoadError
|
|
23
|
+
begin
|
|
24
|
+
# Fallback to the local development layout (bindings/ruby/archive_r.so)
|
|
25
|
+
require_relative '../archive_r'
|
|
26
|
+
rescue LoadError
|
|
27
|
+
begin
|
|
28
|
+
# Fallback for Windows/MinGW where extension might be directly in lib/ or current dir
|
|
29
|
+
require 'archive_r/archive_r'
|
|
30
|
+
rescue LoadError
|
|
31
|
+
# Last resort: try requiring without directory prefix (common in some Windows setups)
|
|
32
|
+
require 'archive_r'
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
module Archive_r
|
|
38
|
+
VERSION = "0.1.3"
|
|
39
|
+
# Common archive formats excluding libarchive's mtree/raw pseudo formats
|
|
40
|
+
STANDARD_FORMATS = %w[
|
|
41
|
+
7zip ar cab cpio empty iso9660 lha rar tar warc xar zip
|
|
42
|
+
].freeze
|
|
43
|
+
|
|
44
|
+
def self.normalize_options(opts = nil)
|
|
45
|
+
options =
|
|
46
|
+
case opts
|
|
47
|
+
when nil
|
|
48
|
+
{}
|
|
49
|
+
when Hash
|
|
50
|
+
opts.dup
|
|
51
|
+
else
|
|
52
|
+
opts.to_hash.dup
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
options[:formats] = STANDARD_FORMATS unless options.key?(:formats)
|
|
56
|
+
options
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
def self.traverse(paths, **opts, &block)
|
|
60
|
+
options = normalize_options(opts)
|
|
61
|
+
|
|
62
|
+
if block
|
|
63
|
+
Traverser.open(paths, options) { |traverser| traverser.each(&block) }
|
|
64
|
+
else
|
|
65
|
+
Traverser.new(paths, options).each
|
|
66
|
+
end
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
class Entry
|
|
70
|
+
# Additional helper methods can be added here
|
|
71
|
+
|
|
72
|
+
def to_s
|
|
73
|
+
path
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
def inspect
|
|
77
|
+
"#<Archive_r::Entry path=#{path.inspect} size=#{size} depth=#{depth}>"
|
|
78
|
+
end
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
class Traverser
|
|
82
|
+
# Additional helper methods can be added here
|
|
83
|
+
|
|
84
|
+
class << self
|
|
85
|
+
alias_method :__archive_r_c_open, :open
|
|
86
|
+
|
|
87
|
+
def open(paths, opts = nil, &block)
|
|
88
|
+
__archive_r_c_open(paths, Archive_r.normalize_options(opts), &block)
|
|
89
|
+
end
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
alias_method :__archive_r_c_initialize, :initialize
|
|
93
|
+
|
|
94
|
+
def initialize(paths, opts = nil)
|
|
95
|
+
__archive_r_c_initialize(paths, Archive_r.normalize_options(opts))
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
# Count entries
|
|
99
|
+
def count
|
|
100
|
+
n = 0
|
|
101
|
+
each { |entry| n += 1 }
|
|
102
|
+
n
|
|
103
|
+
end
|
|
104
|
+
end
|
|
105
|
+
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: archive_r_ruby
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- raizo.tcs
|
|
@@ -49,12 +49,8 @@ extra_rdoc_files: []
|
|
|
49
49
|
files:
|
|
50
50
|
- LICENSE.txt
|
|
51
51
|
- README.md
|
|
52
|
-
- ext/archive_r/Makefile
|
|
53
|
-
- ext/archive_r/archive_r-x64-mingw-ucrt.def
|
|
54
52
|
- ext/archive_r/archive_r_ext.cc
|
|
55
|
-
- ext/archive_r/archive_r_ext.o
|
|
56
53
|
- ext/archive_r/extconf.rb
|
|
57
|
-
- ext/archive_r/mkmf.log
|
|
58
54
|
- ext/archive_r/vendor/archive_r/LICENSE.txt
|
|
59
55
|
- ext/archive_r/vendor/archive_r/include/archive_r/data_stream.h
|
|
60
56
|
- ext/archive_r/vendor/archive_r/include/archive_r/entry.h
|
|
@@ -110,7 +106,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
110
106
|
- !ruby/object:Gem::Version
|
|
111
107
|
version: '0'
|
|
112
108
|
requirements: []
|
|
113
|
-
rubygems_version: 3.4.
|
|
109
|
+
rubygems_version: 3.4.20
|
|
114
110
|
signing_key:
|
|
115
111
|
specification_version: 4
|
|
116
112
|
summary: Ruby bindings for archive_r that traverse nested archives without temp extraction
|
data/ext/archive_r/Makefile
DELETED
|
@@ -1,273 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
SHELL = /bin/sh
|
|
3
|
-
|
|
4
|
-
# V=0 quiet, V=1 verbose. other values don't work.
|
|
5
|
-
V = 0
|
|
6
|
-
V0 = $(V:0=)
|
|
7
|
-
Q1 = $(V:1=)
|
|
8
|
-
Q = $(Q1:0=@)
|
|
9
|
-
ECHO1 = $(V:1=@ :)
|
|
10
|
-
ECHO = $(ECHO1:0=@ echo)
|
|
11
|
-
NULLCMD = :
|
|
12
|
-
|
|
13
|
-
#### Start of system configuration section. ####
|
|
14
|
-
|
|
15
|
-
srcdir = .
|
|
16
|
-
topdir = /C/hostedtoolcache/windows/Ruby/3.2.9/x64/include/ruby-3.2.0
|
|
17
|
-
hdrdir = $(topdir)
|
|
18
|
-
arch_hdrdir = /C/hostedtoolcache/windows/Ruby/3.2.9/x64/include/ruby-3.2.0/x64-mingw-ucrt
|
|
19
|
-
PATH_SEPARATOR = :
|
|
20
|
-
VPATH = $(srcdir):$(arch_hdrdir)/ruby:$(hdrdir)/ruby:;:D:/a/archive_r/archive_r/src
|
|
21
|
-
prefix = $(DESTDIR)/C/hostedtoolcache/windows/Ruby/3.2.9/x64
|
|
22
|
-
rubysitearchprefix = $(rubylibprefix)/$(sitearch)
|
|
23
|
-
rubyarchprefix = $(rubylibprefix)/$(arch)
|
|
24
|
-
rubylibprefix = $(libdir)/$(RUBY_BASE_NAME)
|
|
25
|
-
exec_prefix = $(prefix)
|
|
26
|
-
vendorarchhdrdir = $(vendorhdrdir)/$(sitearch)
|
|
27
|
-
sitearchhdrdir = $(sitehdrdir)/$(sitearch)
|
|
28
|
-
rubyarchhdrdir = $(rubyhdrdir)/$(arch)
|
|
29
|
-
vendorhdrdir = $(rubyhdrdir)/vendor_ruby
|
|
30
|
-
sitehdrdir = $(rubyhdrdir)/site_ruby
|
|
31
|
-
rubyhdrdir = $(includedir)/$(RUBY_VERSION_NAME)
|
|
32
|
-
vendorarchdir = $(vendorlibdir)/$(sitearch)
|
|
33
|
-
vendorlibdir = $(vendordir)/$(ruby_version)
|
|
34
|
-
vendordir = $(rubylibprefix)/vendor_ruby
|
|
35
|
-
sitearchdir = $(sitelibdir)/$(sitearch)
|
|
36
|
-
sitelibdir = $(sitedir)/$(ruby_version)
|
|
37
|
-
sitedir = $(rubylibprefix)/site_ruby
|
|
38
|
-
rubyarchdir = $(rubylibdir)/$(arch)
|
|
39
|
-
rubylibdir = $(rubylibprefix)/$(ruby_version)
|
|
40
|
-
sitearchincludedir = $(includedir)/$(sitearch)
|
|
41
|
-
archincludedir = $(includedir)/$(arch)
|
|
42
|
-
sitearchlibdir = $(libdir)/$(sitearch)
|
|
43
|
-
archlibdir = $(libdir)/$(arch)
|
|
44
|
-
ridir = $(datarootdir)/$(RI_BASE_NAME)
|
|
45
|
-
mandir = $(datarootdir)/man
|
|
46
|
-
localedir = $(datarootdir)/locale
|
|
47
|
-
libdir = $(exec_prefix)/lib
|
|
48
|
-
psdir = $(docdir)
|
|
49
|
-
pdfdir = $(docdir)
|
|
50
|
-
dvidir = $(docdir)
|
|
51
|
-
htmldir = $(docdir)
|
|
52
|
-
infodir = $(datarootdir)/info
|
|
53
|
-
docdir = $(datarootdir)/doc/$(PACKAGE)
|
|
54
|
-
oldincludedir = $(DESTDIR)/usr/include
|
|
55
|
-
includedir = $(prefix)/include
|
|
56
|
-
runstatedir = $(localstatedir)/run
|
|
57
|
-
localstatedir = $(prefix)/var
|
|
58
|
-
sharedstatedir = $(prefix)/com
|
|
59
|
-
sysconfdir = $(DESTDIR)
|
|
60
|
-
datadir = $(datarootdir)
|
|
61
|
-
datarootdir = $(prefix)/share
|
|
62
|
-
libexecdir = $(exec_prefix)/libexec
|
|
63
|
-
sbindir = $(exec_prefix)/sbin
|
|
64
|
-
bindir = $(exec_prefix)/bin
|
|
65
|
-
archdir = $(rubyarchdir)
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
CC_WRAPPER =
|
|
69
|
-
CC = gcc
|
|
70
|
-
CXX = g++
|
|
71
|
-
LIBRUBY = lib$(RUBY_SO_NAME).dll.a
|
|
72
|
-
LIBRUBY_A = lib$(RUBY_SO_NAME)-static.a
|
|
73
|
-
LIBRUBYARG_SHARED = -l$(RUBY_SO_NAME)
|
|
74
|
-
LIBRUBYARG_STATIC = -l$(RUBY_SO_NAME)-static $(MAINLIBS)
|
|
75
|
-
empty =
|
|
76
|
-
OUTFLAG = -o $(empty)
|
|
77
|
-
COUTFLAG = -o $(empty)
|
|
78
|
-
CSRCFLAG = $(empty)
|
|
79
|
-
|
|
80
|
-
RUBY_EXTCONF_H =
|
|
81
|
-
cflags = $(optflags) $(debugflags) $(warnflags)
|
|
82
|
-
cxxflags =
|
|
83
|
-
optflags = -O3 -fno-omit-frame-pointer -fno-fast-math
|
|
84
|
-
debugflags = -ggdb3
|
|
85
|
-
warnflags = -Wall -Wextra -Wdeprecated-declarations -Wdiv-by-zero -Wduplicated-cond -Wimplicit-function-declaration -Wimplicit-int -Wmisleading-indentation -Wpointer-arith -Wwrite-strings -Wold-style-definition -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 -Wundef
|
|
86
|
-
cppflags =
|
|
87
|
-
CCDLFLAGS =
|
|
88
|
-
CFLAGS = $(CCDLFLAGS) -O3 -fno-fast-math -fstack-protector-strong $(ARCH_FLAG)
|
|
89
|
-
INCFLAGS = -I. -I$(arch_hdrdir) -I$(hdrdir)/ruby/backward -I$(hdrdir) -I$(srcdir) -ID:/a/archive_r/archive_r/include -ID:/a/archive_r/archive_r/src -IC:/vcpkg/installed/x64-windows/include
|
|
90
|
-
DEFS = -D_FILE_OFFSET_BITS=64
|
|
91
|
-
CPPFLAGS = -IC:\vcpkg\installed\x64-windows/include -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0600 -D__MINGW_USE_VC2005_COMPAT $(DEFS) $(cppflags)
|
|
92
|
-
CXXFLAGS = $(CCDLFLAGS) -march=nocona -msahf -mtune=generic -O2 -pipe -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -Wp,-D__USE_MINGW_ANSI_STDIO=1 -std=c++17 $(ARCH_FLAG)
|
|
93
|
-
ldflags = -L. -pipe -s -fstack-protector-strong -Wl,--no-as-needed
|
|
94
|
-
dldflags = -pipe -s -fstack-protector-strong -Wl,--enable-auto-image-base,--enable-auto-import $(DEFFILE)
|
|
95
|
-
ARCH_FLAG = -m64
|
|
96
|
-
DLDFLAGS = $(ldflags) $(dldflags) $(ARCH_FLAG)
|
|
97
|
-
LDSHARED = $(CC) -shared
|
|
98
|
-
LDSHAREDXX = $(CXX) -shared
|
|
99
|
-
AR = gcc-ar
|
|
100
|
-
EXEEXT = .exe
|
|
101
|
-
|
|
102
|
-
RUBY_INSTALL_NAME = $(RUBY_BASE_NAME)
|
|
103
|
-
RUBY_SO_NAME = x64-ucrt-ruby320
|
|
104
|
-
RUBYW_INSTALL_NAME = $(RUBYW_BASE_NAME)
|
|
105
|
-
RUBY_VERSION_NAME = $(RUBY_BASE_NAME)-$(ruby_version)
|
|
106
|
-
RUBYW_BASE_NAME = rubyw
|
|
107
|
-
RUBY_BASE_NAME = ruby
|
|
108
|
-
|
|
109
|
-
arch = x64-mingw-ucrt
|
|
110
|
-
sitearch = x64-ucrt
|
|
111
|
-
ruby_version = 3.2.0
|
|
112
|
-
ruby = $(bindir)/$(RUBY_BASE_NAME)
|
|
113
|
-
RUBY = $(ruby)
|
|
114
|
-
BUILTRUBY = $(bindir)/$(RUBY_BASE_NAME).exe
|
|
115
|
-
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
|
|
116
|
-
|
|
117
|
-
RM = rm -f
|
|
118
|
-
RM_RF = rm -fr
|
|
119
|
-
RMDIRS = rmdir --ignore-fail-on-non-empty -p
|
|
120
|
-
MAKEDIRS = /usr/bin/mkdir -p
|
|
121
|
-
INSTALL = /usr/bin/install -c
|
|
122
|
-
INSTALL_PROG = $(INSTALL) -m 0755
|
|
123
|
-
INSTALL_DATA = $(INSTALL) -m 644
|
|
124
|
-
COPY = cp
|
|
125
|
-
TOUCH = exit >
|
|
126
|
-
|
|
127
|
-
#### End of system configuration section. ####
|
|
128
|
-
|
|
129
|
-
preload =
|
|
130
|
-
libpath = . $(libdir) C:\vcpkg\installed\x64-windows/lib C:/vcpkg/installed/x64-windows/lib
|
|
131
|
-
LIBPATH = -L. -L$(libdir) -LC:\vcpkg\installed\x64-windows/lib -LC:/vcpkg/installed/x64-windows/lib
|
|
132
|
-
DEFFILE = $(TARGET)-$(arch).def
|
|
133
|
-
|
|
134
|
-
CLEANFILES = mkmf.log $(DEFFILE)
|
|
135
|
-
DISTCLEANFILES =
|
|
136
|
-
DISTCLEANDIRS =
|
|
137
|
-
|
|
138
|
-
extout =
|
|
139
|
-
extout_prefix =
|
|
140
|
-
target_prefix = /archive_r
|
|
141
|
-
LOCAL_LIBS = "D:/a/archive_r/archive_r/build/Release/archive_r_core.lib"
|
|
142
|
-
LIBS = $(LIBRUBYARG_SHARED) -larchive -lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi -lbcrypt
|
|
143
|
-
ORIG_SRCS = archive_r_ext.cc
|
|
144
|
-
SRCS = $(ORIG_SRCS)
|
|
145
|
-
OBJS = archive_r_ext.o
|
|
146
|
-
HDRS =
|
|
147
|
-
LOCAL_HDRS =
|
|
148
|
-
TARGET = archive_r
|
|
149
|
-
TARGET_NAME = archive_r
|
|
150
|
-
TARGET_ENTRY = Init_$(TARGET_NAME)
|
|
151
|
-
DLLIB = $(TARGET).so
|
|
152
|
-
EXTSTATIC =
|
|
153
|
-
STATIC_LIB =
|
|
154
|
-
|
|
155
|
-
TIMESTAMP_DIR = .
|
|
156
|
-
BINDIR = $(bindir)
|
|
157
|
-
RUBYCOMMONDIR = $(sitedir)$(target_prefix)
|
|
158
|
-
RUBYLIBDIR = $(sitelibdir)$(target_prefix)
|
|
159
|
-
RUBYARCHDIR = $(sitearchdir)$(target_prefix)
|
|
160
|
-
HDRDIR = $(sitehdrdir)$(target_prefix)
|
|
161
|
-
ARCHHDRDIR = $(sitearchhdrdir)$(target_prefix)
|
|
162
|
-
TARGET_SO_DIR =
|
|
163
|
-
TARGET_SO = $(TARGET_SO_DIR)$(DLLIB)
|
|
164
|
-
CLEANLIBS = $(TARGET_SO) false
|
|
165
|
-
CLEANOBJS = $(OBJS) *.bak
|
|
166
|
-
TARGET_SO_DIR_TIMESTAMP = $(TIMESTAMP_DIR)/.sitearchdir.-.archive_r.time
|
|
167
|
-
|
|
168
|
-
all: $(DLLIB)
|
|
169
|
-
static: $(STATIC_LIB)
|
|
170
|
-
.PHONY: all install static install-so install-rb
|
|
171
|
-
.PHONY: clean clean-so clean-static clean-rb
|
|
172
|
-
|
|
173
|
-
clean-static::
|
|
174
|
-
clean-rb-default::
|
|
175
|
-
clean-rb::
|
|
176
|
-
clean-so::
|
|
177
|
-
clean: clean-so clean-static clean-rb-default clean-rb
|
|
178
|
-
-$(Q)$(RM_RF) $(CLEANLIBS) $(CLEANOBJS) $(CLEANFILES) .*.time
|
|
179
|
-
|
|
180
|
-
distclean-rb-default::
|
|
181
|
-
distclean-rb::
|
|
182
|
-
distclean-so::
|
|
183
|
-
distclean-static::
|
|
184
|
-
distclean: clean distclean-so distclean-static distclean-rb-default distclean-rb
|
|
185
|
-
-$(Q)$(RM) Makefile $(RUBY_EXTCONF_H) conftest.* mkmf.log
|
|
186
|
-
-$(Q)$(RM) core ruby$(EXEEXT) *~ $(DISTCLEANFILES)
|
|
187
|
-
-$(Q)$(RMDIRS) $(DISTCLEANDIRS) 2> /dev/null || true
|
|
188
|
-
|
|
189
|
-
realclean: distclean
|
|
190
|
-
install: install-so install-rb
|
|
191
|
-
|
|
192
|
-
install-so: $(DLLIB) $(TARGET_SO_DIR_TIMESTAMP)
|
|
193
|
-
$(INSTALL_PROG) $(DLLIB) $(RUBYARCHDIR)
|
|
194
|
-
clean-static::
|
|
195
|
-
-$(Q)$(RM) $(STATIC_LIB)
|
|
196
|
-
install-rb: pre-install-rb do-install-rb install-rb-default
|
|
197
|
-
install-rb-default: pre-install-rb-default do-install-rb-default
|
|
198
|
-
pre-install-rb: Makefile
|
|
199
|
-
pre-install-rb-default: Makefile
|
|
200
|
-
do-install-rb:
|
|
201
|
-
do-install-rb-default:
|
|
202
|
-
pre-install-rb-default:
|
|
203
|
-
@$(NULLCMD)
|
|
204
|
-
$(TARGET_SO_DIR_TIMESTAMP):
|
|
205
|
-
$(Q) $(MAKEDIRS) $(@D) $(RUBYARCHDIR)
|
|
206
|
-
$(Q) $(TOUCH) $@
|
|
207
|
-
|
|
208
|
-
site-install: site-install-so site-install-rb
|
|
209
|
-
site-install-so: install-so
|
|
210
|
-
site-install-rb: install-rb
|
|
211
|
-
|
|
212
|
-
.SUFFIXES: .c .m .cc .mm .cxx .cpp .o .S
|
|
213
|
-
|
|
214
|
-
.cc.o:
|
|
215
|
-
$(ECHO) compiling $(<)
|
|
216
|
-
$(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $(CSRCFLAG)$<
|
|
217
|
-
|
|
218
|
-
.cc.S:
|
|
219
|
-
$(ECHO) translating $(<)
|
|
220
|
-
$(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -S $(CSRCFLAG)$<
|
|
221
|
-
|
|
222
|
-
.mm.o:
|
|
223
|
-
$(ECHO) compiling $(<)
|
|
224
|
-
$(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $(CSRCFLAG)$<
|
|
225
|
-
|
|
226
|
-
.mm.S:
|
|
227
|
-
$(ECHO) translating $(<)
|
|
228
|
-
$(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -S $(CSRCFLAG)$<
|
|
229
|
-
|
|
230
|
-
.cxx.o:
|
|
231
|
-
$(ECHO) compiling $(<)
|
|
232
|
-
$(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $(CSRCFLAG)$<
|
|
233
|
-
|
|
234
|
-
.cxx.S:
|
|
235
|
-
$(ECHO) translating $(<)
|
|
236
|
-
$(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -S $(CSRCFLAG)$<
|
|
237
|
-
|
|
238
|
-
.cpp.o:
|
|
239
|
-
$(ECHO) compiling $(<)
|
|
240
|
-
$(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $(CSRCFLAG)$<
|
|
241
|
-
|
|
242
|
-
.cpp.S:
|
|
243
|
-
$(ECHO) translating $(<)
|
|
244
|
-
$(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -S $(CSRCFLAG)$<
|
|
245
|
-
|
|
246
|
-
.c.o:
|
|
247
|
-
$(ECHO) compiling $(<)
|
|
248
|
-
$(Q) $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) $(COUTFLAG)$@ -c $(CSRCFLAG)$<
|
|
249
|
-
|
|
250
|
-
.c.S:
|
|
251
|
-
$(ECHO) translating $(<)
|
|
252
|
-
$(Q) $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) $(COUTFLAG)$@ -S $(CSRCFLAG)$<
|
|
253
|
-
|
|
254
|
-
.m.o:
|
|
255
|
-
$(ECHO) compiling $(<)
|
|
256
|
-
$(Q) $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) $(COUTFLAG)$@ -c $(CSRCFLAG)$<
|
|
257
|
-
|
|
258
|
-
.m.S:
|
|
259
|
-
$(ECHO) translating $(<)
|
|
260
|
-
$(Q) $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) $(COUTFLAG)$@ -S $(CSRCFLAG)$<
|
|
261
|
-
|
|
262
|
-
$(TARGET_SO): $(DEFFILE) $(OBJS) Makefile
|
|
263
|
-
$(ECHO) linking shared-object archive_r/$(DLLIB)
|
|
264
|
-
-$(Q)$(RM) $(@)
|
|
265
|
-
$(Q) $(LDSHAREDXX) -o $@ $(OBJS) $(LIBPATH) $(DLDFLAGS) $(LOCAL_LIBS) $(LIBS)
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
$(DEFFILE):
|
|
270
|
-
$(ECHO) generating $(@)
|
|
271
|
-
$(Q) (echo EXPORTS && echo $(TARGET_ENTRY)) > $@
|
|
272
|
-
|
|
273
|
-
$(OBJS): $(HDRS) $(ruby_headers)
|
|
Binary file
|
data/ext/archive_r/mkmf.log
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
have_library: checking for -larchive... -------------------- yes
|
|
2
|
-
|
|
3
|
-
PATH=".;C:/hostedtoolcache/windows/Ruby/3.2.9/x64/lib;C:\hostedtoolcache\windows\Ruby\3.2.9\x64\bin;C:\hostedtoolcache\windows\Ruby\3.2.9\x64\msys64\ucrt64\bin;C:\hostedtoolcache\windows\Ruby\3.2.9\x64\msys64\usr\bin;C:\Users\runneradmin\AppData\Roaming\Python\Python311\Scripts;C:\hostedtoolcache\windows\Python\3.11.9\x64\Scripts;C:\hostedtoolcache\windows\Python\3.11.9\x64;C:\vcpkg\installed\x64-windows\bin;C:\Program Files\PowerShell\7;C:\hostedtoolcache\windows\Ruby\3.2.9\x64\bin;C:\hostedtoolcache\windows\Ruby\3.2.9\x64\msys64\ucrt64\bin;C:\hostedtoolcache\windows\Ruby\3.2.9\x64\msys64\usr\bin;C:\Users\runneradmin\AppData\Roaming\Python\Python311\Scripts;C:\hostedtoolcache\windows\Python\3.11.9\x64\Scripts;C:\hostedtoolcache\windows\Python\3.11.9\x64;C:\Users\runneradmin\AppData\Roaming\Python\Python311\Scripts;C:\hostedtoolcache\windows\Python\3.11.9\x64\Scripts;C:\hostedtoolcache\windows\Python\3.11.9\x64;C:\Program Files\MongoDB\Server\7.0\bin;C:\aliyun-cli;C:\vcpkg;C:\Program Files (x86)\NSIS;C:\tools\zstd;C:\Program Files\Mercurial;C:\hostedtoolcache\windows\stack\3.7.1\x64;C:\cabal\bin;C:\ghcup\bin;C:\Program Files\dotnet;C:\Program Files\MySQL\MySQL Server 8.0\bin;C:\Program Files\R\R-4.5.2\bin\x64;C:\SeleniumWebDrivers\GeckoDriver;C:\SeleniumWebDrivers\EdgeDriver;C:\SeleniumWebDrivers\ChromeDriver;C:\Program Files (x86)\sbt\bin;C:\Program Files (x86)\GitHub CLI;C:\Program Files\Git\bin;C:\Program Files (x86)\pipx_bin;C:\npm\prefix;C:\hostedtoolcache\windows\go\1.24.10\x64\bin;C:\hostedtoolcache\windows\Python\3.9.13\x64\Scripts;C:\hostedtoolcache\windows\Python\3.9.13\x64;C:\Program Files\OpenSSL\bin;C:\tools\kotlinc\bin;C:\hostedtoolcache\windows\Java_Temurin-Hotspot_jdk\8.0.472-8\x64\bin;C:\Program Files\ImageMagick-7.1.2-Q16-HDRI;C:\Program Files\Microsoft SDKs\Azure\CLI2\wbin;C:\ProgramData\kind;C:\ProgramData\Chocolatey\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files\dotnet;C:\Program Files\PowerShell\7;C:\Program Files\Microsoft\Web Platform Installer;C:\Program Files\TortoiseSVN\bin;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn;C:\Program Files\Microsoft SQL Server\150\Tools\Binn;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit;C:\Program Files (x86)\WiX Toolset v3.14\bin;C:\Program Files\Microsoft SQL Server\130\DTS\Binn;C:\Program Files\Microsoft SQL Server\140\DTS\Binn;C:\Program Files\Microsoft SQL Server\150\DTS\Binn;C:\Program Files\Microsoft SQL Server\160\DTS\Binn;C:\Program Files\Microsoft SQL Server\170\DTS\Binn;C:\ProgramData\chocolatey\lib\pulumi\tools\Pulumi\bin;C:\Program Files\CMake\bin;C:\ProgramData\chocolatey\lib\maven\apache-maven-3.9.11\bin;C:\Program Files\Microsoft Service Fabric\bin\Fabric\Fabric.Code;C:\Program Files\Microsoft SDKs\Service Fabric\Tools\ServiceFabricLocalClusterManager;C:\Program Files\nodejs;C:\Program Files\Git\cmd;C:\Program Files\Git\usr\bin;C:\Program Files\GitHub CLI;C:\tools\php;C:\Program Files\Amazon\AWSCLIV2;C:\Program Files\Amazon\SessionManagerPlugin\bin;C:\Program Files\Amazon\AWSSAMCLI\bin;C:\Program Files\Microsoft SQL Server\130\Tools\Binn;C:\Program Files\mongosh;C:\Program Files\LLVM\bin;C:\Program Files (x86)\LLVM\bin;C:\Users\runneradmin\.dotnet\tools;C:\Users\runneradmin\.cargo\bin;C:\Users\runneradmin\AppData\Local\Microsoft\WindowsApps" "gcc -o conftest.exe -IC:/hostedtoolcache/windows/Ruby/3.2.9/x64/include/ruby-3.2.0/x64-mingw-ucrt -IC:/hostedtoolcache/windows/Ruby/3.2.9/x64/include/ruby-3.2.0/ruby/backward -IC:/hostedtoolcache/windows/Ruby/3.2.9/x64/include/ruby-3.2.0 -I. -ID:/a/archive_r/archive_r/include -ID:/a/archive_r/archive_r/src -IC:/vcpkg/installed/x64-windows/include -IC:\vcpkg\installed\x64-windows/include -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0600 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64 -O3 -fno-fast-math -fstack-protector-strong conftest.c -L. -LC:/hostedtoolcache/windows/Ruby/3.2.9/x64/lib -LC:\vcpkg\installed\x64-windows/lib -LC:/vcpkg/installed/x64-windows/lib -L. -pipe -s -fstack-protector-strong -Wl,--no-as-needed -m64 -lx64-ucrt-ruby320 -lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi -lbcrypt "
|
|
4
|
-
checked program was:
|
|
5
|
-
/* begin */
|
|
6
|
-
1: #include "ruby.h"
|
|
7
|
-
2:
|
|
8
|
-
3: #include <winsock2.h>
|
|
9
|
-
4: #include <windows.h>
|
|
10
|
-
5: int main(int argc, char **argv)
|
|
11
|
-
6: {
|
|
12
|
-
7: return !!argv[argc];
|
|
13
|
-
8: }
|
|
14
|
-
/* end */
|
|
15
|
-
|
|
16
|
-
PATH=".;C:/hostedtoolcache/windows/Ruby/3.2.9/x64/lib;C:\hostedtoolcache\windows\Ruby\3.2.9\x64\bin;C:\hostedtoolcache\windows\Ruby\3.2.9\x64\msys64\ucrt64\bin;C:\hostedtoolcache\windows\Ruby\3.2.9\x64\msys64\usr\bin;C:\Users\runneradmin\AppData\Roaming\Python\Python311\Scripts;C:\hostedtoolcache\windows\Python\3.11.9\x64\Scripts;C:\hostedtoolcache\windows\Python\3.11.9\x64;C:\vcpkg\installed\x64-windows\bin;C:\Program Files\PowerShell\7;C:\hostedtoolcache\windows\Ruby\3.2.9\x64\bin;C:\hostedtoolcache\windows\Ruby\3.2.9\x64\msys64\ucrt64\bin;C:\hostedtoolcache\windows\Ruby\3.2.9\x64\msys64\usr\bin;C:\Users\runneradmin\AppData\Roaming\Python\Python311\Scripts;C:\hostedtoolcache\windows\Python\3.11.9\x64\Scripts;C:\hostedtoolcache\windows\Python\3.11.9\x64;C:\Users\runneradmin\AppData\Roaming\Python\Python311\Scripts;C:\hostedtoolcache\windows\Python\3.11.9\x64\Scripts;C:\hostedtoolcache\windows\Python\3.11.9\x64;C:\Program Files\MongoDB\Server\7.0\bin;C:\aliyun-cli;C:\vcpkg;C:\Program Files (x86)\NSIS;C:\tools\zstd;C:\Program Files\Mercurial;C:\hostedtoolcache\windows\stack\3.7.1\x64;C:\cabal\bin;C:\ghcup\bin;C:\Program Files\dotnet;C:\Program Files\MySQL\MySQL Server 8.0\bin;C:\Program Files\R\R-4.5.2\bin\x64;C:\SeleniumWebDrivers\GeckoDriver;C:\SeleniumWebDrivers\EdgeDriver;C:\SeleniumWebDrivers\ChromeDriver;C:\Program Files (x86)\sbt\bin;C:\Program Files (x86)\GitHub CLI;C:\Program Files\Git\bin;C:\Program Files (x86)\pipx_bin;C:\npm\prefix;C:\hostedtoolcache\windows\go\1.24.10\x64\bin;C:\hostedtoolcache\windows\Python\3.9.13\x64\Scripts;C:\hostedtoolcache\windows\Python\3.9.13\x64;C:\Program Files\OpenSSL\bin;C:\tools\kotlinc\bin;C:\hostedtoolcache\windows\Java_Temurin-Hotspot_jdk\8.0.472-8\x64\bin;C:\Program Files\ImageMagick-7.1.2-Q16-HDRI;C:\Program Files\Microsoft SDKs\Azure\CLI2\wbin;C:\ProgramData\kind;C:\ProgramData\Chocolatey\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files\dotnet;C:\Program Files\PowerShell\7;C:\Program Files\Microsoft\Web Platform Installer;C:\Program Files\TortoiseSVN\bin;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn;C:\Program Files\Microsoft SQL Server\150\Tools\Binn;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit;C:\Program Files (x86)\WiX Toolset v3.14\bin;C:\Program Files\Microsoft SQL Server\130\DTS\Binn;C:\Program Files\Microsoft SQL Server\140\DTS\Binn;C:\Program Files\Microsoft SQL Server\150\DTS\Binn;C:\Program Files\Microsoft SQL Server\160\DTS\Binn;C:\Program Files\Microsoft SQL Server\170\DTS\Binn;C:\ProgramData\chocolatey\lib\pulumi\tools\Pulumi\bin;C:\Program Files\CMake\bin;C:\ProgramData\chocolatey\lib\maven\apache-maven-3.9.11\bin;C:\Program Files\Microsoft Service Fabric\bin\Fabric\Fabric.Code;C:\Program Files\Microsoft SDKs\Service Fabric\Tools\ServiceFabricLocalClusterManager;C:\Program Files\nodejs;C:\Program Files\Git\cmd;C:\Program Files\Git\usr\bin;C:\Program Files\GitHub CLI;C:\tools\php;C:\Program Files\Amazon\AWSCLIV2;C:\Program Files\Amazon\SessionManagerPlugin\bin;C:\Program Files\Amazon\AWSSAMCLI\bin;C:\Program Files\Microsoft SQL Server\130\Tools\Binn;C:\Program Files\mongosh;C:\Program Files\LLVM\bin;C:\Program Files (x86)\LLVM\bin;C:\Users\runneradmin\.dotnet\tools;C:\Users\runneradmin\.cargo\bin;C:\Users\runneradmin\AppData\Local\Microsoft\WindowsApps" "gcc -o conftest.exe -IC:/hostedtoolcache/windows/Ruby/3.2.9/x64/include/ruby-3.2.0/x64-mingw-ucrt -IC:/hostedtoolcache/windows/Ruby/3.2.9/x64/include/ruby-3.2.0/ruby/backward -IC:/hostedtoolcache/windows/Ruby/3.2.9/x64/include/ruby-3.2.0 -I. -ID:/a/archive_r/archive_r/include -ID:/a/archive_r/archive_r/src -IC:/vcpkg/installed/x64-windows/include -IC:\vcpkg\installed\x64-windows/include -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0600 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64 -O3 -fno-fast-math -fstack-protector-strong conftest.c -L. -LC:/hostedtoolcache/windows/Ruby/3.2.9/x64/lib -LC:\vcpkg\installed\x64-windows/lib -LC:/vcpkg/installed/x64-windows/lib -L. -pipe -s -fstack-protector-strong -Wl,--no-as-needed -m64 -lx64-ucrt-ruby320 -larchive -lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi -lbcrypt "
|
|
17
|
-
checked program was:
|
|
18
|
-
/* begin */
|
|
19
|
-
1: #include "ruby.h"
|
|
20
|
-
2:
|
|
21
|
-
3: #include <winsock2.h>
|
|
22
|
-
4: #include <windows.h>
|
|
23
|
-
5:
|
|
24
|
-
6: /*top*/
|
|
25
|
-
7: extern int t(void);
|
|
26
|
-
8: int main(int argc, char **argv)
|
|
27
|
-
9: {
|
|
28
|
-
10: if (argc > 1000000) {
|
|
29
|
-
11: int (* volatile tp)(void)=(int (*)(void))&t;
|
|
30
|
-
12: printf("%d", (*tp)());
|
|
31
|
-
13: }
|
|
32
|
-
14:
|
|
33
|
-
15: return !!argv[argc];
|
|
34
|
-
16: }
|
|
35
|
-
17:
|
|
36
|
-
18: int t(void) { ; return 0; }
|
|
37
|
-
/* end */
|
|
38
|
-
|
|
39
|
-
--------------------
|
|
40
|
-
|