Remove Rscons.application.vars

This commit is contained in:
josh committed 2022-01-25 22:32:26 -05:00
1 parent b1b94595f6
commit dbd764749b
5 files changed
+16 -31

No files matched your search

+5 -5
View File
@@ -4,17 +4,17 @@ class DebugBuilder < Rscons::Builder
finalize_command
else
@command = %W[gcc -c -o #{@target} #{@sources.first}]
if Rscons.vars["command_change"]
if ENV["command_change"] == "command_change"
@command += %w[-Wall]
end
if Rscons.vars["new_dep"]
if ENV["test"] == "new_dep"
@sources += ["extra"]
end
if Rscons.vars["strict_deps1"]
if ENV["test"] == "strict_deps1"
@sources += ["extra"]
strict_deps = true
end
if Rscons.vars["strict_deps2"]
if ENV["test"] == "strict_deps2"
@sources = ["extra"] + @sources
strict_deps = true
end
@@ -30,7 +30,7 @@ end
default do
Environment.new do |env|
env.add_builder(DebugBuilder)
if Rscons.vars["new_user_dep"]
if ENV["test"] == "new_user_dep"
env.depends("foo.o", "new_dep")
end
env.DebugBuilder("foo.o", "simple.c")