我幾乎總是使用nmake來構建Z3,因爲我使用老式的編輯器進行工作。
您也可以將Z3導入到VS中。它使修復構建錯誤變得更容易,並且與調試更加順暢,儘管您仍然可以使用VS中的VS調試器和性能工具以及nmake中的可執行文件。
在命令行幫助之後,構建vs項目的選項稱爲-v或--vsproj。
C:\z3>scripts\mk_make.py --help
mk_make.py: Z3 Makefile generator
This script generates the Makefile for the Z3 theorem prover.
It must be executed from the Z3 root directory.
Options:
-h, --help display this message.
-s, --silent do not print verbose messages.
--parallel=num use cl option /MP with 'num' parallel processes
-b <sudir>, --build=<subdir> subdirectory where Z3 will be built
(default: build).
--githash=hash include the given hash in the binaries.
-d, --debug compile Z3 in debug mode.
-t, --trace enable tracing in release mode.
-x, --x64 create 64 binary when using Visual Studio.
-m, --makefiles generate only makefiles.
-v, --vsproj generate Visual Studio Project Files.
-n, --nodotnet do not generate Microsoft.Z3.dll make rules.
-j, --java generate Java bindinds.
--staticlib build Z3 static library.
Some influential environment variables:
JDK_HOME JDK installation directory (only relevant if -j or --java option is provided)
JNI_HOME JNI bindings directory (only relevant if -j or --java option is provided)
如果你很熟悉代碼,編輯是不錯的,比IDE更不討厭。如果你是新手,並且開始尋找函數聲明,你會很慢。 – Hinton