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