Skip to content

Commit ced2558

Browse files
authored
Merge pull request #35 from SpringMT/fix-declspec
Fix declspec
2 parents 96320ce + bde3c06 commit ced2558

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/ruby.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ jobs:
1515
runs-on: ubuntu-latest
1616
strategy:
1717
matrix:
18-
ruby-version: ['2.5', '2.6', '2.7', '3.0']
18+
ruby-version: ['2.6', '2.7', '3.0', '3.1']
1919

2020
steps:
2121
- uses: actions/checkout@v2
2222
- name: Set up Ruby
2323
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
2424
# change this to (see https://github.com/ruby/setup-ruby#versioning):
2525
# uses: ruby/setup-ruby@v1
26-
uses: ruby/setup-ruby@473e4d8fe5dd94ee328fdfca9f8c9c7afc9dae5e
26+
uses: ruby/setup-ruby@168d6a54b412713c0ed60998a78093a270ca8d84
2727
with:
2828
ruby-version: ${{ matrix.ruby-version }}
2929
bundler-cache: true # runs 'bundle install' and caches installed gems automatically

ext/zstdruby/extconf.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
require "mkmf"
22

33
$CFLAGS = '-I. -O3 -std=c99'
4+
$CPPFLAGS += " -fdeclspec" if CONFIG['CXX'] =~ /clang/
45

56
Dir.chdir File.expand_path('..', __FILE__) do
67
$srcs = Dir['**/*.c']

0 commit comments

Comments
 (0)