dub
在下面建立優化二進制的升序是多少? (例如...調試<平原<發佈...)D上的優化級別是什麼?
$ dub build -h
...
-b --build=VALUE Specifies the type of build to perform. Note that
setting the DFLAGS environment variable will override
the build type with custom flags.
Possible names:
debug (default), plain, release, release-debug,
release-nobounds, unittest, profile, profile-gc,
docs, ddox, cov, unittest-cov and custom types
...
的dub build -b release-nobounds
似乎從dmd -O -release -boundscheck=off
得來,所以有什麼等效dub
打造fastest executables?
感謝了很多關於D的編譯和優化策略的深入分析。 – sof