Skip to content

Commit ece26ef

Browse files
committed
cmake compatibility changes
1 parent 8bfbdfa commit ece26ef

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ endif()
5555
message(STATUS "Compiler: ${COMPILER_NAME}")
5656

5757
# fetch and set build type
58-
set(available_build_types Debug Release)
58+
set(available_build_types Debug Release Dev_Release)
5959
if(NOT CMAKE_BUILD_TYPE)
6060
set(CMAKE_BUILD_TYPE Release CACHE STRING "Choose the type of build (Debug or Release)" FORCE)
6161
endif()
@@ -100,6 +100,9 @@ elseif(LINUX)
100100
elseif(${CMAKE_SYSTEM_PROCESSOR} MATCHES "arm")
101101
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mcpu=native")
102102
endif()
103+
elseif(CMAKE_BUILD_TYPE MATCHES "Dev_Release")
104+
message(STATUS "Build set to development release mode")
105+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g0 -O2 -mno-avx512f -mno-avx512bw -mno-avx512vl")
103106
endif()
104107
else()
105108
message(STATUS "Build set to release mode")

README_CN.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@
3636
- 具备记忆功能:若相同计算再次执行,会从缓存中直接获取过往结果,而非重新计算,从而获得性能提升
3737
- 本项目完全采用MIT许可证授权,允许不受限制地使用、修改和分发
3838

39+
<br>
40+
3941
## 例子 🧪
4042

4143
```cpp
@@ -66,10 +68,14 @@ VM certainty: 100%
6668
VM hardening: not found
6769
```
6870

71+
<br>
72+
6973
## 架构 ⚙️
7074

7175
![VMAware library Structure](assets/vmaware.png)
7276

77+
<br>
78+
7379
## 命令行工具 🔧
7480

7581
该项目还提供了一个便捷的命令行工具,充分发挥了库的全部潜力。它还具有跨平台支持。
@@ -80,6 +86,8 @@ VM hardening: not found
8086

8187
<!-- Try it out on [Compiler Explorer](https://godbolt.org/z/4sKa1sqrW)!-->
8288

89+
<br>
90+
8391
## 安装 📥
8492

8593
要安装此库,请从 [最新的发布](https://github.com/kernelwernel/VMAware/releases/latest) 中获取 `vmaware.hpp` 文件并置于您的项目中。预编译二进制文件亦位于该处。无需 CMake 配置或共享库链接,过程极为简便。
@@ -137,12 +145,16 @@ endif()
137145

138146
模块文件及函数版本位于 [auxiliary/vmaware_download.cmake](auxiliary/vmaware_download.cmake)
139147

148+
<br>
149+
140150
## 文档与代码概述 📒
141151

142152
您可在 [docs/documentation.md](docs/documentation.md) 查看完整文档 。其中详尽列出了所有细节,包括功能、技术、设置及示例。相信我,内容并不复杂
143153

144154
若想了解本库的架构与设计,请访问 [DeepWiki - VMAware](https://deepwiki.com/kernelwernel/VMAware)
145155

156+
<br>
157+
146158
## Q&A ❓
147159

148160
<details>
@@ -234,6 +246,8 @@ endif()
234246
235247
</details>
236248

249+
<br>
250+
237251
## 问题、讨论、拉取请求和咨询 📬
238252

239253
欢迎提出建议、分享想法或参与任何形式的贡献!我们非常乐意在 [Issues](https://github.com/kernelwernel/VMAware/issues)[Discussions](https://github.com/kernelwernel/VMAware/discussions) 板块与您交流。我们通常都会尽快回复。若需私下联系,可通过 Discord 账号 `kr.nl``shenzken` 联系我们。
@@ -242,6 +256,8 @@ endif()
242256

243257
如果本项目对您有所帮助,欢迎为我们点亮一颗 Star
244258

259+
<br>
260+
245261
## 鸣谢、贡献者及致谢 ✒️
246262

247263
- [kernelwernel](https://github.com/kernelwernel) (Maintainer and developer)
@@ -281,6 +297,8 @@ endif()
281297
- [luukjp](https://github.com/luukjp)
282298
- [Randark](https://github.com/Randark-JMT)
283299

300+
<br>
301+
284302
## 法律声明 📜
285303

286304
任何因恶意使用本项目所造成的损害,本人概不负责。

0 commit comments

Comments
 (0)