diff options
| author | ruki <[email protected]> | 2020-09-25 00:33:07 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-09-25 00:33:07 +0800 |
| commit | 90af4956738036172984f068502624bbc515cae7 (patch) | |
| tree | 7cd7177becaf98e676ae8eaa478f042e14505d3a /xmake/modules/core/tools/dmd.lua | |
| parent | 700f08a7bae11c22295f884610f98b7b99eb1790 (diff) | |
fix trailing white-space
Diffstat (limited to 'xmake/modules/core/tools/dmd.lua')
| -rw-r--r-- | xmake/modules/core/tools/dmd.lua | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/xmake/modules/core/tools/dmd.lua b/xmake/modules/core/tools/dmd.lua index 2d8fe8f44..baf0032e2 100644 --- a/xmake/modules/core/tools/dmd.lua +++ b/xmake/modules/core/tools/dmd.lua @@ -11,7 +11,7 @@ -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -- See the License for the specific language governing permissions and -- limitations under the License. --- +-- -- Copyright (C) 2015-2020, TBOOX Open Source Group. -- -- @author ruki @@ -25,7 +25,7 @@ import("core.project.project") -- init it function init(self) - + -- init arflags self:set("dcarflags", "-lib") @@ -38,40 +38,40 @@ end -- make the optimize flag function nf_optimize(self, level) - local maps = - { + local maps = + { fast = "-O" , faster = "-O -release" , fastest = "-O -release -inline -boundscheck=off" , smallest = "-O -release -boundscheck=off" , aggressive = "-O -release -inline -boundscheck=off" } - return maps[level] + return maps[level] end -- make the strip flag function nf_strip(self, level) - local maps = - { + local maps = + { debug = "-L-S" , all = "-L-s" } - return maps[level] + return maps[level] end -- make the symbol flag function nf_symbol(self, level) - local maps = - { + local maps = + { debug = "-g -debug" } - return maps[level] + return maps[level] end -- make the warning flag function nf_warning(self, level) - local maps = - { + local maps = + { none = "-d" , less = "-w" , more = "-w -wi" @@ -84,12 +84,12 @@ end -- make the vector extension flag function nf_vectorext(self, extension) - local maps = - { + local maps = + { avx = "-mcpu=avx" , avx2 = "-mcpu=avx" } - return maps[extension] + return maps[extension] end -- make the includedir flag |
