"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "wscript" between
ponyc-0.33.1.tar.gz and ponyc-0.33.2.tar.gz

About: Pony is an object-oriented, actor-model, capabilities-secure, high performance programming language.

wscript  (ponyc-0.33.1):wscript  (ponyc-0.33.2)
skipping to change at line 48 skipping to change at line 48
# source and build directories # source and build directories
top = '.' top = '.'
out = 'build' out = 'build'
# various configuration parameters # various configuration parameters
CONFIGS = [ CONFIGS = [
'release', 'release',
'debug' 'debug'
] ]
MSVC_VERSIONS = [ '16.3', '16.2', '16.1', '16.0', '15.9', '15.8', '15.7', '15.6' , '15.4', '15.0', '14.0' ] MSVC_VERSIONS = [ '16.4', '16.3', '16.2', '16.1', '16.0', '15.9', '15.8', '15.7' , '15.6', '15.4', '15.0' ]
# keep these in sync with the list in .appveyor.yml # keep these in sync with the list in .appveyor.yml
LLVM_VERSIONS = [ LLVM_VERSIONS = [
'7.0.1', '7.1.0',
'6.0.1', '8.0.1',
'3.9.1' '9.0.0'
] ]
LIBRESSL_VERSION = "2.9.0" LIBRESSL_VERSION = "3.0.0"
PCRE2_VERSION = "10.32" PCRE2_VERSION = "10.33"
WINDOWS_LIBS_TAG = "v1.8.2" WINDOWS_LIBS_TAG = "v1.9.0"
# Adds an option for specifying debug or release mode. # Adds an option for specifying debug or release mode.
def options(ctx): def options(ctx):
ctx.add_option('--config', action='store', default=CONFIGS[0], help='debug o r release build') ctx.add_option('--config', action='store', default=CONFIGS[0], help='debug o r release build')
ctx.add_option('--llvm', action='store', default=LLVM_VERSIONS[0], help='llv m version') ctx.add_option('--llvm', action='store', default=LLVM_VERSIONS[0], help='llv m version')
ctx.add_option('--msvc', action='store', default=None, help='MSVC version') ctx.add_option('--msvc', action='store', default=None, help='MSVC version')
# This replaces the default versions of these context classes with subclasses # This replaces the default versions of these context classes with subclasses
# that set their "variant", i.e. build directory, to the debug or release config . # that set their "variant", i.e. build directory, to the debug or release config .
def init(ctx): def init(ctx):
skipping to change at line 257 skipping to change at line 257
shutil.copy(os.path.join(libresslDir, 'lib', 'ssl.lib'), buildDi r) shutil.copy(os.path.join(libresslDir, 'lib', 'ssl.lib'), buildDi r)
shutil.copy(os.path.join(libresslDir, 'lib', 'tls.lib'), buildDi r) shutil.copy(os.path.join(libresslDir, 'lib', 'tls.lib'), buildDi r)
llvmConfig = os.path.join(llvmDir, 'bin', 'llvm-config.exe') llvmConfig = os.path.join(llvmDir, 'bin', 'llvm-config.exe')
ctx.env.LLVM_LLC = os.path.join(llvmDir, 'bin', 'llc.exe') ctx.env.LLVM_LLC = os.path.join(llvmDir, 'bin', 'llc.exe')
llvmLibFiles = cmd_output([llvmConfig, '--libs']) llvmLibFiles = cmd_output([llvmConfig, '--libs'])
import re import re
llvmLibs = [re.sub(r'.*[\\\/]([^\\\/)]+)$', r'\1', x) for x in llvmL ibFiles.split('.lib') if x] llvmLibs = [re.sub(r'.*[\\\/]([^\\\/)]+)$', r'\1', x) for x in llvmL ibFiles.split('.lib') if x]
llvmBuildMode = cmd_output([llvmConfig, '--build-mode']) llvmBuildMode = cmd_output([llvmConfig, '--build-mode'])
if llvmBuildMode == 'Release': if llvmBuildMode.upper() == 'RELEASE':
llvmBuildMode = 'LLVM_BUILD_MODE_Release' llvmBuildMode = 'LLVM_BUILD_MODE_Release'
elif llvmBuildMode == 'RelWithDebInfo': elif llvmBuildMode.upper() == 'RELWITHDEBINFO':
llvmBuildMode = 'LLVM_BUILD_MODE_RelWithDebInfo' llvmBuildMode = 'LLVM_BUILD_MODE_RelWithDebInfo'
elif llvmBuildMode == 'MinSizeRel': elif llvmBuildMode.upper() == 'MINSIZEREL':
llvmBuildMode = 'LLVM_BUILD_MODE_MinSizeRel' llvmBuildMode = 'LLVM_BUILD_MODE_MinSizeRel'
elif llvmBuildMode == 'Debug': elif llvmBuildMode.upper() == 'DEBUG':
llvmBuildMode = 'LLVM_BUILD_MODE_Debug' llvmBuildMode = 'LLVM_BUILD_MODE_Debug'
else: else:
print('Unknown llvm build-mode of {0}'.format(llvmBuildMode)) print('Unknown llvm build-mode of {0}'.format(llvmBuildMode))
sys.exit(1) sys.exit(1)
llvmBuildMode = 'LLVM_BUILD_MODE={0}'.format(llvmBuildMode) llvmBuildMode = 'LLVM_BUILD_MODE={0}'.format(llvmBuildMode)
# build targets: # build targets:
if ctx.options.llvm.startswith('4') or ctx.options.llvm.startswith('5') or c
tx.options.llvm.startswith('6'):
print('WARNING: LLVM 4, 5 and 6 support is experimental and may result i
n decreased performance or crashes')
# gtest # gtest
ctx( ctx(
features = 'cxx cxxstlib seq', features = 'cxx cxxstlib seq',
target = 'gtest', target = 'gtest',
source = ctx.path.ant_glob('lib/gtest/*.cc'), source = ctx.path.ant_glob('lib/gtest/*.cc'),
defines = [ '_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING' ] defines = [ '_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING' ]
) )
# libgbenchmark # libgbenchmark
ctx( ctx(
 End of changes. 8 change blocks. 
16 lines changed or deleted 11 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)