summaryrefslogtreecommitdiff
path: root/rakelib/modula.rake
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2026-02-01 19:01:06 +0100
committerEugen Wissner <belka@caraus.de>2026-02-01 19:01:06 +0100
commit39197fe88ab23bf452e00569ef36b556b787a421 (patch)
tree11753e57712d2709a725bac4ff0ae6aa8508a41b /rakelib/modula.rake
parenta00f0d57b843736d603d749fc269d0208cec4e76 (diff)
downloadelna-39197fe88ab23bf452e00569ef36b556b787a421.tar.gz
Remove GCC glue code
Diffstat (limited to 'rakelib/modula.rake')
-rw-r--r--rakelib/modula.rake36
1 files changed, 0 insertions, 36 deletions
diff --git a/rakelib/modula.rake b/rakelib/modula.rake
deleted file mode 100644
index 746ebb8..0000000
--- a/rakelib/modula.rake
+++ /dev/null
@@ -1,36 +0,0 @@
-# This Source Code Form is subject to the terms of the Mozilla Public License,
-# v. 2.0. If a copy of the MPL was not distributed with this file, You can
-# obtain one at https://mozilla.org/MPL/2.0/. -}
-# frozen_string_literal: true
-
-require 'pathname'
-require 'rake/clean'
-
-CLEAN.include 'build/gcc'
-
-task source: ['source/main.elna', 'build/gcc/elna'] do |t|
- sources, compiler = t.prerequisites.partition { |f| f.end_with? '.elna' }
-
- sh *compiler, '--parse', *sources
-end
-
-rule(/gcc\/.+\.o$/ => ->(file) {
- source = Pathname.new('source') +
- Pathname.new(file).relative_path_from('build/gcc').sub_ext('.elna')
-
- ['build/host/install/bin/gelna', source]
-}) do |t|
- Pathname.new(t.name).dirname.mkpath
- sources, compiler = t.prerequisites.partition { |source| source.end_with? '.elna' }
-
- sh *compiler, '-c', '-O0', '-g', '-o', t.name, *sources
-end
-
-file 'build/gcc/elna' => FileList['source/**/*.elna'].reject { |file|
- file != file.downcase
-}.map { |file|
- Pathname.new('build/gcc') +
- Pathname.new(file).relative_path_from('source').sub_ext('.o')
-} do |t|
- sh 'build/host/install/bin/gcc', '-o', t.name, *t.prerequisites
-end