def GetEnvironmentVariables(self): if not hasattr(self, 'host_compiler_environment'): self.host_compiler_environment = build.GetHostCompilerEnvironment( clang_specification.GetClangSpecification(), self.build_accelerator) toolchain = os.path.realpath( os.path.join( self.raspi_home, 'tools/arm-bcm2708/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf' )) toolchain_bin_dir = os.path.join(toolchain, 'bin') env_variables = self.host_compiler_environment env_variables.update({ 'CC': self.build_accelerator + ' ' + os.path.join(toolchain_bin_dir, 'arm-linux-gnueabihf-gcc'), 'CXX': self.build_accelerator + ' ' + os.path.join(toolchain_bin_dir, 'arm-linux-gnueabihf-g++'), 'STRIP': os.path.join(toolchain_bin_dir, 'arm-linux-gnueabihf-strip'), }) return env_variables
def GetEnvironmentVariables(self): env_variables = build.GetHostCompilerEnvironment(None, False) env_variables.update({ 'CC': os.environ['CC'], 'CXX': os.environ['CXX'], 'LD': os.environ['CXX'] }) return env_variables
def GetEnvironmentVariables(self): if not hasattr(self, 'host_compiler_environment'): self.host_compiler_environment = build.GetHostCompilerEnvironment( clang.GetClangSpecification(), self.goma_supports_compiler) env_variables = self.host_compiler_environment env_variables.update({ 'CC': self.host_compiler_environment['CC_host'], 'CXX': self.host_compiler_environment['CXX_host'], }) return env_variables
def GetEnvironmentVariables(self): env_variables = build.GetHostCompilerEnvironment( clang.GetClangSpecification(), False) toolchain = os.path.realpath( os.path.join( self.raspi_home, 'tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64')) toolchain_bin_dir = os.path.join(toolchain, 'bin') env_variables.update({ 'CC': os.path.join(toolchain_bin_dir, 'arm-linux-gnueabihf-gcc'), 'CXX': os.path.join(toolchain_bin_dir, 'arm-linux-gnueabihf-g++'), }) return env_variables
def GetEnvironmentVariables(self): self.ci20_home = self._GetCi20Home() if not hasattr(self, 'host_compiler_environment'): self.host_compiler_environment = build.GetHostCompilerEnvironment( clang.GetClangSpecification(), False) env_variables = self.host_compiler_environment env_variables = { 'CC': self.host_compiler_environment['CC_host'], 'CXX': self.host_compiler_environment['CXX_host'], 'CC_host': 'gcc', 'CXX_host': 'g++', 'LD_host': 'g++', 'ARFLAGS_host': 'rcs', 'ARTHINFLAGS_host': 'rcsT', } return env_variables
def GetHostToolchain(self): if not self._host_toolchain: if not hasattr(self, 'host_compiler_environment'): self.host_compiler_environment = build.GetHostCompilerEnvironment( clang_build.GetClangSpecification(), False) cc_path = self.host_compiler_environment['CC_host'], cxx_path = self.host_compiler_environment['CXX_host'] self._host_toolchain = [ clang.CCompiler(path=cc_path), clang.CxxCompiler(path=cxx_path), clang.AssemblerWithCPreprocessor(path=cc_path), ar.StaticThinLinker(), ar.StaticLinker(), clangxx.ExecutableLinker(path=cxx_path), clangxx.SharedLibraryLinker(path=cxx_path), cp.Copy(), touch.Stamp(), bash.Shell(), ] return self._host_toolchain
def GetHostCompilerEnvironment(goma_supports_compiler=False): # Assume the same clang that Starboard declares. return build.GetHostCompilerEnvironment(clang.GetClangSpecification(), goma_supports_compiler)