Skip to content
Snippets Groups Projects
Commit a1b176f9 authored by Paolo Bonzini's avatar Paolo Bonzini Committed by Alex Bennée
Browse files

disable modular TCG on Darwin


Accelerator modularity does not work on Darwin:

ld: illegal thread local variable reference to regular symbol _current_cpu for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Fix by avoiding modular TCG builds.

Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
Message-Id: <20210712122208.456264-1-pbonzini@redhat.com>
[AJB: manually merged typo fix]
Signed-off-by: default avatarAlex Bennée <alex.bennee@linaro.org>
parent 3cfafd31
No related branches found
No related tags found
No related merge requests found
......@@ -92,7 +92,11 @@ if cpu in ['x86', 'x86_64']
}
endif
modular_tcg = ['i386-softmmu', 'x86_64-softmmu']
modular_tcg = []
# Darwin does not support references to thread-local variables in modules
if targetos != 'darwin'
modular_tcg = ['i386-softmmu', 'x86_64-softmmu']
endif
edk2_targets = [ 'arm-softmmu', 'aarch64-softmmu', 'i386-softmmu', 'x86_64-softmmu' ]
install_edk2_blobs = false
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment