Skip to content

Commit

Permalink
Merge pull request #38 from SpringMT/fix-asm-support
Browse files Browse the repository at this point in the history
fix: fix asm support
  • Loading branch information
SpringMT authored Dec 28, 2021
2 parents 7a4bf10 + 70f53a7 commit 0e52c79
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ext/zstdruby/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
$CPPFLAGS += " -fdeclspec" if CONFIG['CXX'] =~ /clang/

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

Dir.glob('libzstd/*') do |path|
if Dir.exist?(path)
Expand Down
4 changes: 2 additions & 2 deletions spec/zstd-ruby_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@

describe 'compress' do
it 'should work' do
compressed = Zstd.compress('abc')
compressed = Zstd.compress('abc' * 10)
expect(compressed).to be_a(String)
expect(compressed).to_not eq('abc')
expect(compressed).to_not eq('abc' * 10)
end

it 'should support compression levels' do
Expand Down

0 comments on commit 0e52c79

Please sign in to comment.