Browse Source

fix docs: update 'set_defaultarch' to 'set_defaultarchs'

欧阳 3 years ago
parent
commit
73be698477

+ 1 - 1
about/changelog.md

@@ -210,7 +210,7 @@
 
 * [#1483](https://github.com/xmake-io/xmake/issues/1483): Add `os.joinenvs()` and improve package tools envirnoments
 * [#1523](https://github.com/xmake-io/xmake/issues/1523): Add `set_allowedmodes`, `set_allowedplats` and `set_allowedarchs`
-* [#1523](https://github.com/xmake-io/xmake/issues/1523): Add `set_defaultmode`, `set_defaultplat` and `set_defaultarch`
+* [#1523](https://github.com/xmake-io/xmake/issues/1523): Add `set_defaultmode`, `set_defaultplat` and `set_defaultarchs`
 
 ### Change
 

+ 3 - 3
manual/global_interfaces.md

@@ -518,7 +518,7 @@ set_defaultplat("iphoneos")
 
 It is equivalent to `xmake f -p iphoneos`.
 
-### set_defaultarch
+### set_defaultarchs
 
 #### Set the default compilation architecture
 
@@ -526,7 +526,7 @@ Only supported by v2.5.6 and above, it is used to set the default compilation ar
 
 ```lua
 set_defaultplat("iphoneos")
-set_defaultarch("arm64")
+set_defaultarchs("arm64")
 ```
 
 It is equivalent to `xmake f -p iphoneos -a arm64`.
@@ -534,7 +534,7 @@ It is equivalent to `xmake f -p iphoneos -a arm64`.
 We can also set the default architecture under multiple platforms.
 
 ```lua
-set_defaultarch("iphoneos|arm64", "windows|x64")
+set_defaultarchs("iphoneos|arm64", "windows|x64")
 ```
 
 The arm64 architecture is compiled by default on iphoneos, and the x64 architecture is compiled by default on windows.

+ 1 - 1
mirror/about/changelog.html

@@ -292,7 +292,7 @@
 <ul>
 <li><a href="https://github.com/xmake-io/xmake/issues/1483">#1483</a>: Add <code>os.joinenvs()</code> and improve package tools envirnoments</li>
 <li><a href="https://github.com/xmake-io/xmake/issues/1523">#1523</a>: Add <code>set_allowedmodes</code>, <code>set_allowedplats</code> and <code>set_allowedarchs</code></li>
-<li><a href="https://github.com/xmake-io/xmake/issues/1523">#1523</a>: Add <code>set_defaultmode</code>, <code>set_defaultplat</code> and <code>set_defaultarch</code></li>
+<li><a href="https://github.com/xmake-io/xmake/issues/1523">#1523</a>: Add <code>set_defaultmode</code>, <code>set_defaultplat</code> and <code>set_defaultarchs</code></li>
 </ul>
 <h3 id="change">Change</h3>
 <ul>

+ 3 - 3
mirror/manual/global_interfaces.html

@@ -392,15 +392,15 @@ add_requireconfs("libwebp.*|cmake", {debug = true})
 <pre><code class="lang-lua">set_defaultplat("iphoneos")
 </code></pre>
 <p>It is equivalent to <code>xmake f -p iphoneos</code>.</p>
-<h3 id="set_defaultarch">set_defaultarch</h3>
+<h3 id="set_defaultarchs">set_defaultarchs</h3>
 <h4 id="setthedefaultcompilationarchitecture">Set the default compilation architecture</h4>
 <p>Only supported by v2.5.6 and above, it is used to set the default compilation architecture of the project. If it is not set, the default platform follows the current system architecture, which is os.arch().</p>
 <pre><code class="lang-lua">set_defaultplat("iphoneos")
-set_defaultarch("arm64")
+set_defaultarchs("arm64")
 </code></pre>
 <p>It is equivalent to <code>xmake f -p iphoneos -a arm64</code>.</p>
 <p>We can also set the default architecture under multiple platforms.</p>
-<pre><code class="lang-lua">set_defaultarch("iphoneos|arm64", "windows|x64")
+<pre><code class="lang-lua">set_defaultarchs("iphoneos|arm64", "windows|x64")
 </code></pre>
 <p>The arm64 architecture is compiled by default on iphoneos, and the x64 architecture is compiled by default on windows.</p>
 <h3 id="set_defaultmode">set_defaultmode</h3>

+ 1 - 1
mirror/zh-cn/about/changelog.html

@@ -293,7 +293,7 @@
 <ul>
 <li><a href="https://github.com/xmake-io/xmake/issues/1483">#1483</a>: 添加 <code>os.joinenvs()</code> 和改进包工具环境</li>
 <li><a href="https://github.com/xmake-io/xmake/issues/1523">#1523</a>: 添加 <code>set_allowedmodes</code>, <code>set_allowedplats</code> 和 <code>set_allowedarchs</code></li>
-<li><a href="https://github.com/xmake-io/xmake/issues/1523">#1523</a>: 添加 <code>set_defaultmode</code>, <code>set_defaultplat</code> 和 <code>set_defaultarch</code></li>
+<li><a href="https://github.com/xmake-io/xmake/issues/1523">#1523</a>: 添加 <code>set_defaultmode</code>, <code>set_defaultplat</code> 和 <code>set_defaultarchs</code></li>
 </ul>
 <h3 id="">改进</h3>
 <ul>

+ 3 - 3
mirror/zh-cn/manual/global_interfaces.html

@@ -404,15 +404,15 @@ add_requireconfs("libwebp.*|cmake", {debug = true})
 <pre><code class="lang-lua">set_defaultplat("iphoneos")
 </code></pre>
 <p>它等价于,<code>xmake f -p iphoneos</code>。</p>
-<h3 id="set_defaultarch">set_defaultarch</h3>
+<h3 id="set_defaultarchs">set_defaultarchs</h3>
 <h4 id="">设置默认的编译架构</h4>
 <p>v2.5.6 以上版本才支持,用于设置工程默认的编译架构,如果没有设置,默认平台跟随当前系统架构,也就是 os.arch()。</p>
 <pre><code class="lang-lua">set_defaultplat("iphoneos")
-set_defaultarch("arm64")
+set_defaultarchs("arm64")
 </code></pre>
 <p>它等价于,<code>xmake f -p iphoneos -a arm64</code>。</p>
 <p>我们也可以设置多个平台下的默认架构。</p>
-<pre><code class="lang-lua">set_defaultarch("iphoneos|arm64", "windows|x64")
+<pre><code class="lang-lua">set_defaultarchs("iphoneos|arm64", "windows|x64")
 </code></pre>
 <p>在 iphoneos 上默认编译 arm64 架构,在 windows 上默认编译 x64 架构。</p>
 <h3 id="set_defaultmode">set_defaultmode</h3>

+ 1 - 1
zh-cn/about/changelog.md

@@ -211,7 +211,7 @@
 
 * [#1483](https://github.com/xmake-io/xmake/issues/1483): 添加 `os.joinenvs()` 和改进包工具环境
 * [#1523](https://github.com/xmake-io/xmake/issues/1523): 添加 `set_allowedmodes`, `set_allowedplats` 和 `set_allowedarchs`
-* [#1523](https://github.com/xmake-io/xmake/issues/1523): 添加 `set_defaultmode`, `set_defaultplat` 和 `set_defaultarch`
+* [#1523](https://github.com/xmake-io/xmake/issues/1523): 添加 `set_defaultmode`, `set_defaultplat` 和 `set_defaultarchs`
 
 ### 改进
 

+ 3 - 3
zh-cn/manual/global_interfaces.md

@@ -543,7 +543,7 @@ set_defaultplat("iphoneos")
 
 它等价于,`xmake f -p iphoneos`。
 
-### set_defaultarch
+### set_defaultarchs
 
 #### 设置默认的编译架构
 
@@ -551,7 +551,7 @@ v2.5.6 以上版本才支持,用于设置工程默认的编译架构,如果
 
 ```lua
 set_defaultplat("iphoneos")
-set_defaultarch("arm64")
+set_defaultarchs("arm64")
 ```
 
 它等价于,`xmake f -p iphoneos -a arm64`。
@@ -559,7 +559,7 @@ set_defaultarch("arm64")
 我们也可以设置多个平台下的默认架构。
 
 ```lua
-set_defaultarch("iphoneos|arm64", "windows|x64")
+set_defaultarchs("iphoneos|arm64", "windows|x64")
 ```
 
 在 iphoneos 上默认编译 arm64 架构,在 windows 上默认编译 x64 架构。