diff options
| author | ruki <[email protected]> | 2017-02-24 17:56:10 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-02-24 17:56:10 +0800 |
| commit | 0d364e3ba71ea2805c274247c4eb4f34d9bf7c10 (patch) | |
| tree | b853ee444e92443e0592c3561b3256e3d0ed823b /xmake/platforms/linux/load.lua | |
| parent | 009c17b89cd33cf7915f82d0d994233238a6bc4c (diff) | |
map some dlang flags
Diffstat (limited to 'xmake/platforms/linux/load.lua')
| -rw-r--r-- | xmake/platforms/linux/load.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/xmake/platforms/linux/load.lua b/xmake/platforms/linux/load.lua index caf20d6ba..185b5c8a5 100644 --- a/xmake/platforms/linux/load.lua +++ b/xmake/platforms/linux/load.lua @@ -74,8 +74,10 @@ function main() _g["go-ldflags"] = {} -- init flags for dlang - _g["dc-shflags"] = {} - _g["dc-ldflags"] = {} + local dc_archs = { i386 = "-m32", x86_64 = "-m64" } + _g.dcflags = { dc_archs[arch] or "" } + _g["dc-shflags"] = { dc_archs[arch] or "" } + _g["dc-ldflags"] = { dc_archs[arch] or "" } -- init flags for rust _g["rc-shflags"] = {} |
