diff options
| author | ruki <[email protected]> | 2015-07-14 18:24:36 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2015-07-14 18:24:36 +0800 |
| commit | 928101a35f7ef42aa96ad76564b1e120066cbb14 (patch) | |
| tree | f26503d6c2251dd65118e0503eabef4644e0a1e7 /xmake/scripts/base/compiler.lua | |
| parent | 48b22f27376341ba8ad8e585bb5b257b50bde048 (diff) | |
fix mapping flags for compiler and linker
Diffstat (limited to 'xmake/scripts/base/compiler.lua')
| -rw-r--r-- | xmake/scripts/base/compiler.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/scripts/base/compiler.lua b/xmake/scripts/base/compiler.lua index 64b385a5c..5fa96b93e 100644 --- a/xmake/scripts/base/compiler.lua +++ b/xmake/scripts/base/compiler.lua @@ -48,7 +48,7 @@ function compiler._mapflag(module, flag) -- find and replace it using pattern for k, v in pairs(module.mapflags) do - local flag_mapped, count = flag:gsub(k, function (w) + local flag_mapped, count = flag:gsub("^" .. k .. "$", function (w) if type(v) == "function" then return v(module, w) else |
