diff options
| author | Eugen Wissner <belka@caraus.de> | 2026-11-08 19:50:24 +0100 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2026-11-08 19:50:24 +0100 |
| commit | afa516a3bae3a2dd4bb4a92cb12f3f6fcdcc8e5c (patch) | |
| tree | 8cf468bee3e762a270a256dda2ddc53d410fe861 /rakelib/compiler.rake | |
| parent | 39db5d5b89dfd2086d73d171487ab9f185a0adf0 (diff) | |
| download | elna-afa516a3bae3a2dd4bb4a92cb12f3f6fcdcc8e5c.tar.gz | |
Fix comparison with an exported constant
Diffstat (limited to 'rakelib/compiler.rake')
| -rw-r--r-- | rakelib/compiler.rake | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/rakelib/compiler.rake b/rakelib/compiler.rake index 349f74a..0ee34e2 100644 --- a/rakelib/compiler.rake +++ b/rakelib/compiler.rake @@ -13,8 +13,7 @@ Rake.application.add_loader('d', Rake::MakefileLoader.new) FileList['build/gcc/obj/**/*.d'].each { |file| import file } rule(%r{gcc/obj/.+\.o$} => lambda { |file| - source = Pathname.new('source') + - Pathname.new(file).relative_path_from('build/gcc/obj').sub_ext('.elna') + source = Pathname.new(file).relative_path_from('build/gcc/obj').sub_ext('.elna') [source, 'build/host/install/bin/gelna'] }) do |t| @@ -23,10 +22,10 @@ rule(%r{gcc/obj/.+\.o$} => lambda { |file| sh t.prerequisites.last, '-c', '-MD', '-MP', '-O0', '-g', *Platform.includes, '-o', t.name, t.source.to_s end -sources = FileList['source/**/*.elna'].select { |file| file == file.downcase } +sources = Platform.sources file 'build/gcc/bin/elna' => sources.map { |file| Pathname.new('build/gcc/obj') + - Pathname.new(file).relative_path_from('source').sub_ext('.o') + Pathname.new(file).sub_ext('.o') } do |t| Pathname.new(t.name).dirname.mkpath |
