mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Nicer error formatting when cross compiling
This commit is contained in:
parent
039b684269
commit
649baf052f
@ -309,6 +309,8 @@ def init_env(debug=False, sanitize=False, compiling_for='native'):
|
||||
cc = cxx = 'clang-cl'
|
||||
linker = 'lld-link'
|
||||
splat = '.build-cache/xwin/splat'
|
||||
cflags.append('-fcolor-diagnostics')
|
||||
cflags.append('-fansi-escape-codes')
|
||||
for I in 'sdk/include/um sdk/include/cppwinrt sdk/include/shared sdk/include/ucrt crt/include'.split():
|
||||
cflags.append('/external:I')
|
||||
cflags.append(f'{splat}/{I}')
|
||||
|
@ -239,7 +239,9 @@ class ExtDev(Command):
|
||||
which, ext = opts.cli_args[:2]
|
||||
cmd = opts.cli_args[2:] or ['calibre-debug', '--test-build']
|
||||
if which == 'windows':
|
||||
subprocess.check_call([sys.executable, 'setup.py', 'build', '--cross-compile-extensions=windows', '--only=winspeech'])
|
||||
cp = subprocess.run([sys.executable, 'setup.py', 'build', '--cross-compile-extensions=windows', '--only=winspeech'])
|
||||
if cp.returncode != 0:
|
||||
raise SystemExit(cp.returncode)
|
||||
src = 'src/calibre/plugins/winspeech.cross-windows-x64.pyd'
|
||||
host = 'win'
|
||||
path = '/cygdrive/c/Program Files/Calibre2/app/bin/{}.pyd'
|
||||
|
Loading…
x
Reference in New Issue
Block a user