summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluwenpeng <[email protected]>2024-08-28 18:02:44 +0800
committerluwenpeng <[email protected]>2024-08-28 18:02:44 +0800
commite91343d4021ef3677e9b0569a56b167dc0c5fa28 (patch)
tree655f5c0bb0315f458c43711a12d0936bcf6934c7
parentd4c01c3ffb078a0f86cf0b3bbde57f95e5bdf005 (diff)
refactor(infra/main): from *.cpp to *.c
-rw-r--r--infra/CMakeLists.txt2
-rw-r--r--infra/main.c (renamed from infra/main.cpp)0
2 files changed, 1 insertions, 1 deletions
diff --git a/infra/CMakeLists.txt b/infra/CMakeLists.txt
index 20dfe14..64d002c 100644
--- a/infra/CMakeLists.txt
+++ b/infra/CMakeLists.txt
@@ -9,7 +9,7 @@ add_subdirectory(session_manager)
add_subdirectory(plugin_manager)
add_subdirectory(core)
-add_executable(stellar main.cpp)
+add_executable(stellar main.c)
target_link_libraries(stellar PRIVATE -Wl,--whole-archive core ${LIBRARY} ${PLUGIN} -Wl,--no-whole-archive)
target_link_libraries(stellar PRIVATE "-rdynamic")
set_target_properties(stellar PROPERTIES LINK_FLAGS "-Wl,--version-script=${CMAKE_CURRENT_LIST_DIR}/core/version.map")
diff --git a/infra/main.cpp b/infra/main.c
index becc338..becc338 100644
--- a/infra/main.cpp
+++ b/infra/main.c