From afa516a3bae3a2dd4bb4a92cb12f3f6fcdcc8e5c Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Sun, 8 Nov 2026 19:50:24 +0100 Subject: Fix comparison with an exported constant --- rakelib/compiler.rake | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'rakelib/compiler.rake') 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 -- cgit v1.2.3