summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/zig.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2020-09-25 00:33:07 +0800
committerruki <[email protected]>2020-09-25 00:33:07 +0800
commit90af4956738036172984f068502624bbc515cae7 (patch)
tree7cd7177becaf98e676ae8eaa478f042e14505d3a /xmake/modules/core/tools/zig.lua
parent700f08a7bae11c22295f884610f98b7b99eb1790 (diff)
fix trailing white-space
Diffstat (limited to 'xmake/modules/core/tools/zig.lua')
-rw-r--r--xmake/modules/core/tools/zig.lua16
1 files changed, 8 insertions, 8 deletions
diff --git a/xmake/modules/core/tools/zig.lua b/xmake/modules/core/tools/zig.lua
index f3e3d5b06..c9927a382 100644
--- a/xmake/modules/core/tools/zig.lua
+++ b/xmake/modules/core/tools/zig.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
@@ -26,7 +26,7 @@ import("core.project.target")
-- init it
function init(self)
-
+
-- init shflags
self:set("zcshflags", "-dynamic", "-fPIC")
@@ -36,12 +36,12 @@ end
-- make the strip flag
function nf_strip(self, level)
- local maps =
- {
+ local maps =
+ {
debug = "--strip"
, all = "--strip"
}
- return maps[level]
+ return maps[level]
end
-- make the define flag
@@ -51,8 +51,8 @@ end
-- make the optimize flag
function nf_optimize(self, level)
- local maps =
- {
+ local maps =
+ {
none = "-O0"
, fast = "--release-safe"
, aggressive = "--release-fast"
@@ -60,7 +60,7 @@ function nf_optimize(self, level)
, smallest = "--release-small"
, aggressive = "--release-fast"
}
- return maps[level]
+ return maps[level]
end
-- make the link flag