diff options
| author | ruki <[email protected]> | 2015-06-03 13:53:44 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2015-06-03 13:53:44 +0800 |
| commit | bcb0d8e7eb53865f627cadd79eb181de34e86f5a (patch) | |
| tree | ca0300e883af6093b54985e797311d820da68d4c /xmake/scripts/compiler/compiler.lua | |
| parent | 6ba8d0eb8d09d5170242837ef091c04ab4da6047 (diff) | |
uses table.insert
Diffstat (limited to 'xmake/scripts/compiler/compiler.lua')
| -rw-r--r-- | xmake/scripts/compiler/compiler.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/scripts/compiler/compiler.lua b/xmake/scripts/compiler/compiler.lua index e1dbb9658..6bd6561af 100644 --- a/xmake/scripts/compiler/compiler.lua +++ b/xmake/scripts/compiler/compiler.lua @@ -50,7 +50,7 @@ function compiler._mapflags(self, flags) -- map it local flag_mapped = self._mapflag(configs, flag) if flag_mapped then - flags_mapped[table.getn(flags_mapped) + 1] = flag_mapped + table.insert(flags_mapped, flag_mapped) end end |
