mirror of
https://github.com/Z3Prover/z3
synced 2025-06-03 21:01:22 +00:00
Merge branch 'master' of https://github.com/Z3Prover/z3
This commit is contained in:
commit
b61376e8c2
2 changed files with 4 additions and 3 deletions
|
@ -596,7 +596,7 @@ def display_help(exit_code):
|
||||||
else:
|
else:
|
||||||
print(" --parallel=num use cl option /MP with 'num' parallel processes")
|
print(" --parallel=num use cl option /MP with 'num' parallel processes")
|
||||||
print(" --pypkgdir=<dir> Force a particular Python package directory (default %s)" % PYTHON_PACKAGE_DIR)
|
print(" --pypkgdir=<dir> Force a particular Python package directory (default %s)" % PYTHON_PACKAGE_DIR)
|
||||||
print(" -b <sudir>, --build=<subdir> subdirectory where Z3 will be built (default: build).")
|
print(" -b <subdir>, --build=<subdir> subdirectory where Z3 will be built (default: %s)." % BUILD_DIR)
|
||||||
print(" --githash=hash include the given hash in the binaries.")
|
print(" --githash=hash include the given hash in the binaries.")
|
||||||
print(" -d, --debug compile Z3 in debug mode.")
|
print(" -d, --debug compile Z3 in debug mode.")
|
||||||
print(" -t, --trace enable tracing in release mode.")
|
print(" -t, --trace enable tracing in release mode.")
|
||||||
|
@ -742,7 +742,8 @@ def extract_c_includes(fname):
|
||||||
|
|
||||||
# Given a path dir1/subdir2/subdir3 returns ../../..
|
# Given a path dir1/subdir2/subdir3 returns ../../..
|
||||||
def reverse_path(p):
|
def reverse_path(p):
|
||||||
l = p.split(os.sep)
|
# Filter out empty components (e.g. will have one if path ends in a slash)
|
||||||
|
l = list(filter(lambda x: len(x) > 0, p.split(os.sep)))
|
||||||
n = len(l)
|
n = len(l)
|
||||||
r = '..'
|
r = '..'
|
||||||
for i in range(1, n):
|
for i in range(1, n):
|
||||||
|
|
|
@ -76,7 +76,7 @@ void invoke_gdb() {
|
||||||
for (;;) {
|
for (;;) {
|
||||||
std::cerr << "(C)ontinue, (A)bort, (S)top, (T)hrow exception, Invoke (G)DB\n";
|
std::cerr << "(C)ontinue, (A)bort, (S)top, (T)hrow exception, Invoke (G)DB\n";
|
||||||
char result;
|
char result;
|
||||||
bool ok = (std::cin >> result);
|
bool ok = bool(std::cin >> result);
|
||||||
if (!ok) exit(ERR_INTERNAL_FATAL); // happens if std::cin is eof or unattached.
|
if (!ok) exit(ERR_INTERNAL_FATAL); // happens if std::cin is eof or unattached.
|
||||||
switch(result) {
|
switch(result) {
|
||||||
case 'C':
|
case 'C':
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue