diff options
| author | ruki <[email protected]> | 2019-05-20 23:59:05 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-05-20 17:54:35 +0800 |
| commit | e58f040c618c09f1899b86d1ca0af6bc7342bd1f (patch) | |
| tree | c833774292a88423fb898958caf09e160911096e /xmake/platforms/android/load.lua | |
| parent | d0fc956fc21a92a39c7f56d62820ab78946617f0 (diff) | |
remove -mthumb for android/x86_64
Diffstat (limited to 'xmake/platforms/android/load.lua')
| -rw-r--r-- | xmake/platforms/android/load.lua | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/xmake/platforms/android/load.lua b/xmake/platforms/android/load.lua index 94212458c..475315b72 100644 --- a/xmake/platforms/android/load.lua +++ b/xmake/platforms/android/load.lua @@ -26,14 +26,13 @@ function main(platform) -- init flags local arch = config.get("arch") - if arch:startswith("arm64") then - platform:add("ldflags", "-llog") - platform:add("shflags", "-llog") - else + platform:add("ldflags", "-llog") + platform:add("shflags", "-llog") + if arch and (arch == "armv5te" or arch == "armv7-a") then platform:add("cxflags", "-mthumb") platform:add("asflags", "-mthumb") - platform:add("ldflags", "-llog", "-mthumb") - platform:add("shflags", "-llog", "-mthumb") + platform:add("ldflags", "-mthumb") + platform:add("shflags", "-mthumb") end -- use llvm directory? e.g. android-ndk/toolchains/llvm/prebuilt/darwin-x86_64/bin |
