3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-22 08:35:31 +00:00

More thorough check

This commit is contained in:
Christoph M. Wintersteiger 2024-03-23 13:20:09 +00:00
parent 347901b0fb
commit 1873f397db
No known key found for this signature in database
GPG key ID: 50B5FDA31455CFF3

View file

@ -330,7 +330,10 @@ def test_atomic_required(cc):
}")
""")
t.commit()
return exec_compiler_cmd([cc, CPPFLAGS, '', 'tstatomic.cpp', LDFLAGS, '']) != 0
fails_without = exec_compiler_cmd([cc, CPPFLAGS, '', 'tstatomic.cpp', LDFLAGS, '']) != 0
ok_with = exec_compiler_cmd([cc, CPPFLAGS, '', 'tstatomic.cpp', LDFLAGS + ' -latomic', '']) == 0
return fails_without and ok_with
def find_jni_h(path):
for root, dirs, files in os.walk(path):