secGear/backport-add-codegen-compile-marco.patch
2024-03-29 20:18:05 +08:00

30 lines
799 B
Diff

From 088eca103708b2d54c4fe46f6dc2da7a21f4f0da Mon Sep 17 00:00:00 2001
From: houmingyong <houmingyong@huawei.com>
Date: Thu, 7 Dec 2023 14:08:36 +0800
Subject: [PATCH] add codegen compile marco
Reference:https://gitee.com/openeuler/secGear/commit/088eca103708b2d54c4fe46f6dc2da7a21f4f0da
Conflict:Deleted the PL part from the patch.
---
CMakeLists.txt | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 25e6381..8a6f22b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -74,7 +74,10 @@ if(${ENCLAVE} STREQUAL "SGX")
set(CC_SGX ON)
endif()
-add_subdirectory(tools/codegener)
+option(CODEGEN "default off" ON)
+if(CODEGEN)
+ add_subdirectory(tools/codegener)
+endif()
add_subdirectory(src)
add_subdirectory(component)
--
2.33.0