8000 Drop C extension by k0kubun · Pull Request #1146 · haml/haml · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Drop C extension #1146

8000
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 3 additions & 37 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,39 +1,5 @@
require 'bundler/gem_tasks'

#
# Prepend DevKit into compilation phase
#
if Gem.win_platform?
desc 'Activates DevKit'
task :devkit do
begin
require 'devkit'
rescue LoadError
abort 'Failed to load DevKit required for compilation'
end
end
task compile: :devkit
end

require 'rake/testtask'
if /java/ === RUBY_PLATFORM
# require 'rake/javaextensiontask'
# Rake::JavaExtensionTask.new(:haml) do |ext|
# ext.ext_dir = 'ext/java'
# ext.lib_dir = 'lib/haml'
# end

task :compile do
# dummy for now
end
else
require 'rake/extensiontask'
Rake::ExtensionTask.new(:haml) do |ext|
ext.lib_dir = 'lib/haml'
end
end

Dir['benchmark/*.rake'].each { |b| import(b) }

Rake::TestTask.new do |t|
t.libs << 'lib' << 'test'
Expand All @@ -42,10 +8,10 @@ Rake::TestTask.new do |t|
t.test_files = files
t.verbose = true
end
task test: :compile
task :test

desc 'bench task for CI'
task bench: :compile do
task :bench do
if ENV['SLIM_BENCH'] == '1'
cmd = %w[bundle exec ruby benchmark/slim/run-benchmarks.rb]
else
Expand Down Expand Up @@ -79,4 +45,4 @@ task(:doc => 'doc:sass') {sh "yard"}
desc "Generate documentation incrementally"
task(:redoc) {sh "yard -c"}

task default: %w[compile test]
task default: :test
10 changes: 0 additions & 10 deletions ext/haml/extconf.rb

This file was deleted.

Loading
0