#NEWLINE# def build_x86_64( self ) : #NEWLINE# #INDENT# sdk_path = sh . xcrun ( '--sdk' , 'macosx' , '--show-sdk-path' ) . strip ( ) #NEWLINE# build_env = self . ctx . env . copy ( ) #NEWLINE# ccache = ( ( build_env [ 'CCACHE' ] + ' ' ) if ( 'CCACHE' in build_env ) else '' ) #NEWLINE# build_env [ 'CC' ] = ( ccache + 'clang -Qunused-arguments -fcolor-diagnostics' ) #NEWLINE# build_env [ 'LDFLAGS' ] = ' ' . join ( [ '-lsqlite3' , '-lffi' , '-L{}' . format ( join ( self . ctx . dist_dir , 'hostlibffi' , 'usr' , 'local' , 'lib' ) ) ] ) #NEWLINE# build_env [ 'CFLAGS' ] = ' ' . join ( [ '--sysroot={}' . format ( ccache ) , '-I{}' . format ( join ( self . ctx . dist_dir , 'hostlibffi' , 'usr' , 'local' , 'include' ) ) ] ) #NEWLINE# configure = sh . Command ( join ( self . build_dir , 'configure' ) ) #NEWLINE# shprint ( configure , '--prefix={}' . format ( join ( self . ctx . dist_dir , 'hostpython' ) ) , '--disable-toolbox-glue' , '--without-gcc' , _env = build_env ) #NEWLINE# shprint ( sh . make , '-C' , self . build_dir , '-j4' , 'python.exe' , 'Parser/pgen' , _env = build_env ) #NEWLINE# shutil . move ( 'python.exe' , 'hostpython' ) #NEWLINE# shutil . move ( 'Parser/pgen' , 'Parser/hostpgen' )