prepend builder-temporary construction variables with "_"; reserve lowercase string variables for user

This commit is contained in:
josh committed 2013-09-16 22:30:16 -04:00
1 parent f13664331f
commit 986b8f08cc
4 files changed
+22 -21

No files matched your search

+3 -3
View File
@@ -10,7 +10,7 @@ module Rscons
'LDFLAGS' => [],
'LIBPATH' => [],
'LIBS' => [],
'LDCOM' => ['$LD', '-o', '$TARGET', '$LDFLAGS', '$SOURCES', '-L$[LIBPATH]', '-l$[LIBS]']
'LDCOM' => ['$LD', '-o', '$_TARGET', '$LDFLAGS', '$_SOURCES', '-L$[LIBPATH]', '-l$[LIBS]']
}
end
@@ -23,8 +23,8 @@ module Rscons
end.any?
ld_alt = use_cxx ? env['CXX'] : env['CC']
vars = vars.merge({
'TARGET' => target,
'SOURCES' => objects,
'_TARGET' => target,
'_SOURCES' => objects,
'LD' => env['LD'] || ld_alt,
})
command = env.build_command(env['LDCOM'], vars)