def getBuildEnv(self, replaceVar=mx_subst.path_substitutions): env = super(SulongTestSuite, self).getBuildEnv(replaceVar=replaceVar) env['VPATH'] = os.path.join(self.dir, self.name) env['PROJECT'] = self.name env['TESTS'] = ' '.join(self.getTests()) env['VARIANTS'] = ' '.join(self.getVariants()) env['BUILD_REF'] = '1' if self.buildRef else '0' env['BUILD_SO'] = '1' if self.buildSharedObject else '0' env['SO_EXT'] = mx.add_lib_suffix("") env['SULONG_MAKE_CLANG_IMPLICIT_ARGS'] = mx_sulong.getClangImplicitArgs() env['CLANG'] = mx_sulong.findBundledLLVMProgram('clang') env['CLANGXX'] = mx_sulong.findBundledLLVMProgram('clang++') env['LLVM_OPT'] = mx_sulong.findBundledLLVMProgram('opt') env['LLVM_AS'] = mx_sulong.findBundledLLVMProgram('llvm-as') env['LLVM_LINK'] = mx_sulong.findBundledLLVMProgram('llvm-link') env['LLVM_OBJCOPY'] = mx_sulong.findBundledLLVMProgram('llvm-objcopy') if SulongTestSuite.haveDragonegg(): env['DRAGONEGG'] = mx_sulong.dragonEggPath() env['DRAGONEGG_GCC'] = mx_sulong.getGCC() env['DRAGONEGG_LLVMAS'] = mx_sulong.findLLVMProgramForDragonegg("llvm-as") env['DRAGONEGG_FC'] = mx_sulong.getGFortran() env['FC'] = mx_sulong.getGFortran() elif not self._is_needs_rebuild_call and getattr(self, 'requireDragonegg', False): mx.abort('Could not find dragonegg, cannot build "{}" (requireDragonegg = True).'.format(self.name)) return env
def getBuildEnv(self, replaceVar=mx_subst.path_substitutions): env = super(SulongTestSuite, self).getBuildEnv(replaceVar=replaceVar) env['VPATH'] = os.path.join(self.dir, self.name) env['PROJECT'] = self.name env['TESTS'] = ' '.join(self.getTests()) env['VARIANTS'] = ' '.join(self.getVariants()) env['BUILD_REF'] = '1' if self.buildRef else '0' env['SULONG_MAKE_CLANG_IMPLICIT_ARGS'] = mx_sulong.getClangImplicitArgs() if SulongTestSuite.haveDragonegg(): env['DRAGONEGG'] = mx_sulong.dragonEggPath() env['DRAGONEGG_GCC'] = mx_sulong.getGCC() env['DRAGONEGG_LLVMAS'] = mx_sulong.findLLVMProgramForDragonegg("llvm-as") return env
def getBuildEnv(self, replaceVar=mx_subst.path_substitutions): env = super(SulongTestSuite, self).getBuildEnv(replaceVar=replaceVar) env['VPATH'] = os.path.join(self.dir, self.name) env['PROJECT'] = self.name env['TESTS'] = ' '.join(self.getTests()) env['VARIANTS'] = ' '.join(self.getVariants()) env['BUILD_REF'] = '1' if self.buildRef else '0' env['SULONG_MAKE_CLANG_IMPLICIT_ARGS'] = mx_sulong.getClangImplicitArgs( ) if SulongTestSuite.haveDragonegg(): env['DRAGONEGG'] = mx_sulong.dragonEggPath() env['DRAGONEGG_GCC'] = mx_sulong.getGCC() env['DRAGONEGG_LLVMAS'] = mx_sulong.findLLVMProgramForDragonegg( "llvm-as") return env