ruki 1 год назад
Родитель
Сommit
7a3ca31e11

+ 15 - 0
manual/helper_interfaces.md

@@ -399,3 +399,18 @@ checking for STRING_SIZE ... 24
 ```
 
 Alternatively, I can check for it in the script field with `target:check_sizeof`.
+
+#### Detecting big-endian
+
+After version 2.8.9, we added the ``check_bigendian`` interface to determine if the current compilation target is in bigendian mode.
+
+```lua
+includes("@builtin/check")
+
+target("test")
+    set_kind("static")
+    add_files("*.cpp")
+    check_bigendian("IS_BIG_ENDIAN")
+```
+
+If the test passes and it is currently in big endian mode, then `IS_BIG_ENDIAN=1` is defined.

+ 1 - 1
mirror/manual/custom_rule.html

@@ -695,7 +695,7 @@ target("test")
 <p>The load script used to implement the custom rules will be executed when the target is loaded. You can customize some target configurations in it, for example:</p>
 <pre><code class="lang-lua">rule("test")
     on_load(function (target)
-        target:add("defines", "-DTEST")
+        target:add("defines", "TEST")
     end)
 </code></pre>
 <h3 id="ruleon_config">rule:on_config</h3>

+ 10 - 0
mirror/manual/helper_interfaces.html

@@ -610,6 +610,16 @@ checking for LONG_SIZE ... 8
 checking for STRING_SIZE ... 24
 </code></pre>
 <p>Alternatively, I can check for it in the script field with <code>target:check_sizeof</code>.</p>
+<h4 id="detectingbigendian">Detecting big-endian</h4>
+<p>After version 2.8.9, we added the <code>check_bigendian</code> interface to determine if the current compilation target is in bigendian mode.</p>
+<pre><code class="lang-lua">includes("@builtin/check")
+
+target("test")
+    set_kind("static")
+    add_files("*.cpp")
+    check_bigendian("IS_BIG_ENDIAN")
+</code></pre>
+<p>If the test passes and it is currently in big endian mode, then <code>IS_BIG_ENDIAN=1</code> is defined.</p>
 </article>
 </body>
 </html>

+ 1 - 0
mirror/manual/project_target.html

@@ -2532,6 +2532,7 @@ $ xmake run -g bench*
 <h3 id="targetset_encodings">target:set_encodings</h3>
 <h4 id="setencodings">Set encodings</h4>
 <p>This is a new interface in version 2.8.2, we can use this interface to set the encoding of source and target files.</p>
+<p>All supported encodings: utf-8, gb2312 (msvc)</p>
 <p>By default, just specifying the encoding will work for both the source and target files.</p>
 <pre><code class="lang-lua">-- for all source/target encodings
 set_encodings("utf-8") -- msvc: /utf-8

+ 1 - 1
mirror/zh-cn/manual/custom_rule.html

@@ -698,7 +698,7 @@ target("test")
 <p>用于实现自定规则的加载脚本,当加载target的时候,会被执行,可在里面自定义设置一些target配置,例如:</p>
 <pre><code class="lang-lua">rule("test")
     on_load(function (target)
-        target:add("defines", "-DTEST")
+        target:add("defines", "TEST")
     end)
 </code></pre>
 <h3 id="ruleon_link">rule:on_link</h3>

+ 10 - 0
mirror/zh-cn/manual/helper_interfaces.html

@@ -613,6 +613,16 @@ checking for LONG_SIZE ... 8
 checking for STRING_SIZE ... 24
 </code></pre>
 <p>另外,我也可以通过 <code>target:check_sizeof</code> 在脚本域进行检测。</p>
+<h4 id="">检测大小端</h4>
+<p>在 2.8.9 版本之后,我们新增了 <code>check_bigendian</code> 接口,来判断当前编译目标是否为大端模式。</p>
+<pre><code class="lang-lua">includes("@builtin/check")
+
+target("test")
+    set_kind("static")
+    add_files("*.cpp")
+    check_bigendian("IS_BIG_ENDIAN")
+</code></pre>
+<p>如果检测通过,当前是大端模式,那么会定义 <code>IS_BIG_ENDIAN=1</code>。</p>
 </article>
 </body>
 </html>

+ 1 - 0
mirror/zh-cn/manual/project_target.html

@@ -2547,6 +2547,7 @@ $ xmake run -g bench*
 <h3 id="targetset_encodings">target:set_encodings</h3>
 <h4 id="">设置编码</h4>
 <p>这是 2.8.2 版本新增的接口,我们可以用这个接口设置源文件、目标执行文件的编码。</p>
+<p>目前支持的编码:utf-8, gb2312 (msvc)</p>
 <p>默认情况下,我们仅仅指定编码,是会同时对源文件,目标文件生效。</p>
 <pre><code class="lang-lua">-- for all source/target encodings
 set_encodings("utf-8") -- msvc: /utf-8

+ 104 - 104
sitemap.xml

@@ -12,522 +12,522 @@
 
 <url>
   <loc>https://xmake.io/mirror/guide/project_examples.html</loc>
-  <lastmod>2024-03-21T22:10:43+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:14+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/guide/quickstart.html</loc>
-  <lastmod>2024-03-21T22:10:43+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:15+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/guide/faq.html</loc>
-  <lastmod>2024-03-21T22:10:43+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:15+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/guide/build_policies.html</loc>
-  <lastmod>2024-03-21T22:10:43+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:15+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/guide/configuration.html</loc>
-  <lastmod>2024-03-21T22:10:44+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:15+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/guide/syntax_description.html</loc>
-  <lastmod>2024-03-21T22:10:44+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:15+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/guide/installation.html</loc>
-  <lastmod>2024-03-21T22:10:44+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:15+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/features/remote_build.html</loc>
-  <lastmod>2024-03-21T22:10:44+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:16+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/features/unity_build.html</loc>
-  <lastmod>2024-03-21T22:10:45+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:16+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/features/distcc_build.html</loc>
-  <lastmod>2024-03-21T22:10:45+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:16+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/features/trybuild.html</loc>
-  <lastmod>2024-03-21T22:10:45+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:16+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/features/autogen.html</loc>
-  <lastmod>2024-03-21T22:10:46+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:16+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/features/build_cache.html</loc>
-  <lastmod>2024-03-21T22:10:46+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:17+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/plugin/plugin_development.html</loc>
-  <lastmod>2024-03-21T22:10:46+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:17+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/plugin/more_plugins.html</loc>
-  <lastmod>2024-03-21T22:10:46+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:17+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/plugin/builtin_plugins.html</loc>
-  <lastmod>2024-03-21T22:10:47+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:17+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/about/awesome.html</loc>
-  <lastmod>2024-03-21T22:10:47+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:17+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/about/technical_support.html</loc>
-  <lastmod>2024-03-21T22:10:47+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:18+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/about/changelog.html</loc>
-  <lastmod>2024-03-21T22:10:48+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:18+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/about/contact.html</loc>
-  <lastmod>2024-03-21T22:10:48+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:18+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/about/introduction.html</loc>
-  <lastmod>2024-03-21T22:10:48+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:18+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/about/who_is_using_xmake.html</loc>
-  <lastmod>2024-03-21T22:10:49+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:18+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/about/sponsor.html</loc>
-  <lastmod>2024-03-21T22:10:49+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:19+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/index.html</loc>
-  <lastmod>2024-03-21T22:10:49+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:19+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/guide/project_examples.html</loc>
-  <lastmod>2024-03-21T22:10:50+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:19+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/guide/quickstart.html</loc>
-  <lastmod>2024-03-21T22:10:50+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:19+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/guide/faq.html</loc>
-  <lastmod>2024-03-21T22:10:51+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:20+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/guide/build_policies.html</loc>
-  <lastmod>2024-03-21T22:10:51+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:20+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/guide/configuration.html</loc>
-  <lastmod>2024-03-21T22:10:51+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:20+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/guide/syntax_description.html</loc>
-  <lastmod>2024-03-21T22:10:52+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:20+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/guide/installation.html</loc>
-  <lastmod>2024-03-21T22:10:52+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:20+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/features/remote_build.html</loc>
-  <lastmod>2024-03-21T22:10:53+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:21+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/features/unity_build.html</loc>
-  <lastmod>2024-03-21T22:10:53+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:21+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/features/distcc_build.html</loc>
-  <lastmod>2024-03-21T22:10:54+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:21+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/features/trybuild.html</loc>
-  <lastmod>2024-03-21T22:10:55+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:21+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/features/autogen.html</loc>
-  <lastmod>2024-03-21T22:10:55+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:21+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/features/build_cache.html</loc>
-  <lastmod>2024-03-21T22:10:56+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:22+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/plugin/plugin_development.html</loc>
-  <lastmod>2024-03-21T22:10:56+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:22+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/plugin/more_plugins.html</loc>
-  <lastmod>2024-03-21T22:10:57+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:22+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/plugin/builtin_plugins.html</loc>
-  <lastmod>2024-03-21T22:10:57+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:22+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/about/awesome.html</loc>
-  <lastmod>2024-03-21T22:10:58+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:22+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/about/technical_support.html</loc>
-  <lastmod>2024-03-21T22:10:58+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:23+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/about/changelog.html</loc>
-  <lastmod>2024-03-21T22:10:59+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:23+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/about/contact.html</loc>
-  <lastmod>2024-03-21T22:10:59+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:23+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/about/peripheral_items.html</loc>
-  <lastmod>2024-03-21T22:10:59+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:23+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/about/introduction.html</loc>
-  <lastmod>2024-03-21T22:11:00+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:23+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/about/who_is_using_xmake.html</loc>
-  <lastmod>2024-03-21T22:11:01+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:24+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/about/sponsor.html</loc>
-  <lastmod>2024-03-21T22:11:01+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:24+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/about/course.html</loc>
-  <lastmod>2024-03-21T22:11:02+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:24+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/index.html</loc>
-  <lastmod>2024-03-21T22:11:02+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:24+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/getting_started.html</loc>
-  <lastmod>2024-03-21T22:11:03+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:24+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/manual/specification.html</loc>
-  <lastmod>2024-03-21T22:11:03+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:25+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/manual/builtin_variables.html</loc>
-  <lastmod>2024-03-21T22:11:03+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:25+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/manual/conditions.html</loc>
-  <lastmod>2024-03-21T22:11:04+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:25+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/manual/custom_rule.html</loc>
-  <lastmod>2024-03-21T22:11:04+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:25+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/manual/target_instance.html</loc>
-  <lastmod>2024-03-21T22:11:05+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:25+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/manual/project_target.html</loc>
-  <lastmod>2024-03-21T22:11:05+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:25+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/manual/builtin_modules.html</loc>
-  <lastmod>2024-03-21T22:11:06+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:26+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/manual/custom_toolchain.html</loc>
-  <lastmod>2024-03-21T22:11:06+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:26+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/manual/plugin_task.html</loc>
-  <lastmod>2024-03-21T22:11:07+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:26+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/manual/package_dependencies.html</loc>
-  <lastmod>2024-03-21T22:11:07+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:26+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/manual/configuration_option.html</loc>
-  <lastmod>2024-03-21T22:11:08+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:27+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/manual/extension_modules.html</loc>
-  <lastmod>2024-03-21T22:11:08+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:27+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/manual/helper_interfaces.html</loc>
-  <lastmod>2024-03-21T22:11:08+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:27+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/manual/global_interfaces.html</loc>
-  <lastmod>2024-03-21T22:11:09+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:27+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/manual/package_instance.html</loc>
-  <lastmod>2024-03-21T22:11:09+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:28+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/manual/xpack.html</loc>
-  <lastmod>2024-03-21T22:11:10+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:28+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/manual/option_instance.html</loc>
-  <lastmod>2024-03-21T22:11:11+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:28+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/theme/builtin_themes.html</loc>
-  <lastmod>2024-03-21T22:11:11+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:28+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/theme/switch_theme.html</loc>
-  <lastmod>2024-03-21T22:11:12+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:28+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/package/local_3rd_source_library.html</loc>
-  <lastmod>2024-03-21T22:11:12+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:29+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/package/local_package_old.html</loc>
-  <lastmod>2024-03-21T22:11:12+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:29+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/package/local_package.html</loc>
-  <lastmod>2024-03-21T22:11:13+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:29+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/package/system_package.html</loc>
-  <lastmod>2024-03-21T22:11:13+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:29+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/package/remote_package.html</loc>
-  <lastmod>2024-03-21T22:11:14+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:29+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/toolchain/remote_toolchain.html</loc>
-  <lastmod>2024-03-21T22:11:14+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:30+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/toolchain/builtin_toolchains.html</loc>
-  <lastmod>2024-03-21T22:11:14+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:30+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/getting_started.html</loc>
-  <lastmod>2024-03-21T22:11:15+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:30+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/manual/specification.html</loc>
-  <lastmod>2024-03-21T22:11:15+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:30+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/manual/builtin_variables.html</loc>
-  <lastmod>2024-03-21T22:11:16+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:31+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/manual/conditions.html</loc>
-  <lastmod>2024-03-21T22:11:16+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:31+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/manual/custom_rule.html</loc>
-  <lastmod>2024-03-21T22:11:16+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:31+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/manual/target_instance.html</loc>
-  <lastmod>2024-03-21T22:11:17+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:31+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/manual/project_target.html</loc>
-  <lastmod>2024-03-21T22:11:17+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:32+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/manual/builtin_modules.html</loc>
-  <lastmod>2024-03-21T22:11:18+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:32+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/manual/custom_toolchain.html</loc>
-  <lastmod>2024-03-21T22:11:18+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:32+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/manual/plugin_task.html</loc>
-  <lastmod>2024-03-21T22:11:18+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:33+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/manual/package_dependencies.html</loc>
-  <lastmod>2024-03-21T22:11:19+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:33+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/manual/configuration_option.html</loc>
-  <lastmod>2024-03-21T22:11:19+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:33+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/manual/extension_modules.html</loc>
-  <lastmod>2024-03-21T22:11:20+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:34+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/manual/helper_interfaces.html</loc>
-  <lastmod>2024-03-21T22:11:20+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:34+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/manual/global_interfaces.html</loc>
-  <lastmod>2024-03-21T22:11:21+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:34+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/manual/package_instance.html</loc>
-  <lastmod>2024-03-21T22:11:21+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:35+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/manual/xpack.html</loc>
-  <lastmod>2024-03-21T22:11:21+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:35+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/manual/option_instance.html</loc>
-  <lastmod>2024-03-21T22:11:22+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:35+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/theme/builtin_themes.html</loc>
-  <lastmod>2024-03-21T22:11:22+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:35+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/theme/switch_theme.html</loc>
-  <lastmod>2024-03-21T22:11:22+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:36+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/package/local_3rd_source_library.html</loc>
-  <lastmod>2024-03-21T22:11:23+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:36+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/package/local_package_old.html</loc>
-  <lastmod>2024-03-21T22:11:23+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:36+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/package/local_package.html</loc>
-  <lastmod>2024-03-21T22:11:23+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:37+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/package/system_package.html</loc>
-  <lastmod>2024-03-21T22:11:24+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:37+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/package/remote_package.html</loc>
-  <lastmod>2024-03-21T22:11:24+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:37+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/toolchain/remote_toolchain.html</loc>
-  <lastmod>2024-03-21T22:11:24+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:38+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/toolchain/builtin_toolchains.html</loc>
-  <lastmod>2024-03-21T22:11:24+08:00</lastmod>
+  <lastmod>2024-03-21T22:19:38+08:00</lastmod>
 </url>
 
 </urlset>

+ 15 - 0
zh-cn/manual/helper_interfaces.md

@@ -398,3 +398,18 @@ checking for STRING_SIZE ... 24
 ```
 
 另外,我也可以通过 `target:check_sizeof` 在脚本域进行检测。
+
+#### 检测大小端
+
+在 2.8.9 版本之后,我们新增了 `check_bigendian` 接口,来判断当前编译目标是否为大端模式。
+
+```lua
+includes("@builtin/check")
+
+target("test")
+    set_kind("static")
+    add_files("*.cpp")
+    check_bigendian("IS_BIG_ENDIAN")
+```
+
+如果检测通过,当前是大端模式,那么会定义 `IS_BIG_ENDIAN=1`。