Skip to content

Commit cd87e92

Browse files
committed
update version
1 parent 04f946a commit cd87e92

File tree

4 files changed

+31
-7
lines changed

4 files changed

+31
-7
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## master (unreleased)
44

5+
## v1.7.3
6+
57
### Changes
68

79
* Improve support for xp and mingw
@@ -279,6 +281,8 @@
279281

280282
## master (开发中)
281283

284+
## v1.7.3
285+
282286
### 改进
283287

284288
* 改进对 xp 和 mingw 的支持

configure

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2841,6 +2841,18 @@ toolchain "i686_w64_mingw32"
28412841
set_toolset "ar" "i686-w64-mingw32-ar" "ar"
28422842
toolchain_end
28432843

2844+
# aarch64 toolchain (aarch64)
2845+
toolchain "aarch64_linux_gnu"
2846+
set_toolset "as" "aarch64-linux-gnu-gcc"
2847+
set_toolset "cc" "aarch64-linux-gnu-gcc"
2848+
set_toolset "cxx" "aarch64-linux-gnu-gcc" "aarch64-linux-gnu-g++"
2849+
set_toolset "mm" "aarch64-linux-gnu-gcc"
2850+
set_toolset "mxx" "aarch64-linux-gnu-gcc" "aarch64-linux-gnu-g++"
2851+
set_toolset "ld" "aarch64-linux-gnu-g++" "aarch64-linux-gnu-gcc"
2852+
set_toolset "sh" "aarch64-linux-gnu-g++" "aarch64-linux-gnu-gcc"
2853+
set_toolset "ar" "aarch64-linux-gnu-ar" "ar"
2854+
toolchain_end
2855+
28442856
# check platform
28452857
_check_platform() {
28462858
if test "x${_target_plat}" = "x"; then
@@ -3157,6 +3169,11 @@ _toolchain_detect() {
31573169
else
31583170
toolchains="x86_64_w64_mingw32"
31593171
fi
3172+
elif is_plat "linux" && ! is_arch "${os_arch}"; then
3173+
toolchains="envs"
3174+
if is_arch "arm64"; then
3175+
toolchains="${toolchains} aarch64_linux_gnu"
3176+
fi
31603177
else
31613178
toolchains="envs gcc clang"
31623179
fi
@@ -3715,18 +3732,19 @@ _gmake_add_switches() {
37153732
echo "INSTALLDIR:=\$(DESTDIR)" >> "${xmake_sh_makefile}"
37163733
echo "endif" >> "${xmake_sh_makefile}"
37173734
echo "" >> "${xmake_sh_makefile}"
3735+
echo "ifeq (\$(PREFIX),)" >> "${xmake_sh_makefile}"
3736+
echo "PREFIX=${_install_prefix_default}" >> "${xmake_sh_makefile}"
3737+
echo "endif" >> "${xmake_sh_makefile}"
3738+
echo "" >> "${xmake_sh_makefile}"
37183739
echo "ifneq (\$(PREFIX),)" >> "${xmake_sh_makefile}"
37193740
echo "ifneq (\$(INSTALLDIR),)" >> "${xmake_sh_makefile}"
3720-
echo "INSTALLDIR:=\$(INSTALLDIR)/\$(PREFIX)" >> "${xmake_sh_makefile}"
3741+
echo "PREFIX_:=\$(patsubst /%,%,\$(PREFIX))" >> "${xmake_sh_makefile}"
3742+
echo "INSTALLDIR:=\$(INSTALLDIR)/\$(PREFIX_)" >> "${xmake_sh_makefile}"
37213743
echo "else" >> "${xmake_sh_makefile}"
37223744
echo "INSTALLDIR:=\$(PREFIX)" >> "${xmake_sh_makefile}"
37233745
echo "endif" >> "${xmake_sh_makefile}"
37243746
echo "endif" >> "${xmake_sh_makefile}"
37253747
echo "" >> "${xmake_sh_makefile}"
3726-
echo "ifeq (\$(INSTALLDIR),)" >> "${xmake_sh_makefile}"
3727-
echo "INSTALLDIR=${_install_prefix_default}" >> "${xmake_sh_makefile}"
3728-
echo "endif" >> "${xmake_sh_makefile}"
3729-
echo "" >> "${xmake_sh_makefile}"
37303748
}
37313749

37323750
_gmake_add_flags() {
@@ -3957,10 +3975,12 @@ _gmake_add_install_target() {
39573975
_get_target_item "${target}" "kind"; local targetkind="${_ret}"
39583976
if test_eq "${targetkind}" "binary"; then
39593977
string_replace "${_install_bindir_default}" "\${prefix}" "${installdir}"; _install_bindir_default="${_ret}"
3978+
print "\t@echo installing ${targetfile} to ${_install_bindir_default}" >> "${xmake_sh_makefile}"
39603979
print "\t@mkdir -p ${_install_bindir_default}" >> "${xmake_sh_makefile}"
39613980
print "\t@cp -p ${targetfile} ${_install_bindir_default}/${filename}" >> "${xmake_sh_makefile}"
39623981
elif test_eq "${targetkind}" "static" || test_eq "${targetkind}" "shared"; then
39633982
string_replace "${_install_libdir_default}" "\${prefix}" "${installdir}"; _install_libdir_default="${_ret}"
3983+
print "\t@echo installing ${targetfile} to ${_install_libdir_default}" >> "${xmake_sh_makefile}"
39643984
print "\t@mkdir -p ${_install_libdir_default}" >> "${xmake_sh_makefile}"
39653985
print "\t@cp -p ${targetfile} ${_install_libdir_default}/${filename}" >> "${xmake_sh_makefile}"
39663986
fi

src/xmake.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/sh
22

33
set_project "tbox"
4-
set_version "1.7.2" "%Y%m%d"
4+
set_version "1.7.3" "%Y%m%d"
55

66
# set warning all as error
77
set_warnings "all" "error"

xmake.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set_project("tbox")
55
set_xmakever("2.6.1")
66

77
-- set project version
8-
set_version("1.7.2", {build = "%Y%m%d"})
8+
set_version("1.7.3", {build = "%Y%m%d"})
99

1010
-- set warning all as error
1111
set_warnings("all", "error")

0 commit comments

Comments
 (0)