Reference env directly

This change will work when the new changes to base are merged...
This commit is contained in:
Eryn Wells 2016-02-28 12:57:12 -05:00
parent 0ed28ab34c
commit a4a8972625

View file

@ -14,14 +14,14 @@ files = [
] ]
toolchain_bin = Dir(os.environ['POLKA_TOOLCHAIN']).Dir('bin') toolchain_bin = Dir(os.environ['POLKA_TOOLCHAIN']).Dir('bin')
Replace(AS=toolchain_bin.File('i686-elf-as'), env.Replace(AS=toolchain_bin.File('i686-elf-as'),
CC=toolchain_bin.File('i686-elf-gcc'), CC=toolchain_bin.File('i686-elf-gcc'),
CXX=toolchain_bin.File('i686-elf-g++'), CXX=toolchain_bin.File('i686-elf-g++'),
LINK=toolchain_bin.File('i686-elf-ld')) LINK=toolchain_bin.File('i686-elf-ld'))
Append(CCFLAGS='-ffreestanding', env.Append(CCFLAGS='-ffreestanding',
CPPDEFINES='__polka', CPPDEFINES='__polka',
CXXFLAGS='-fno-exceptions -fno-rtti', CXXFLAGS='-fno-exceptions -fno-rtti',
LINKFLAGS='-nostdlib -lgcc') LINKFLAGS='-nostdlib -lgcc')
# Global constructor files. These must be linked IN THIS ORDER. # Global constructor files. These must be linked IN THIS ORDER.
def crtfile_path(name): def crtfile_path(name):