feat update
All checks were successful
linux-mips64-gcc / linux-gcc-mips64el (Debug) (push) Successful in 31m29s
linux-x64-gcc / linux-gcc (Release) (push) Successful in 31m44s
linux-mips64-gcc / linux-gcc-mips64el (Release) (push) Successful in 31m55s
linux-arm-gcc / linux-gcc-armhf (push) Successful in 32m31s
linux-aarch64-cpu-gcc / linux-gcc-aarch64 (push) Successful in 32m58s
linux-x64-gcc / linux-gcc (Debug) (push) Successful in 34m1s

This commit is contained in:
tqcq 2024-04-30 09:44:13 +08:00
parent 6eedad6eee
commit cd7612700d
2 changed files with 6 additions and 3 deletions

View File

@ -228,7 +228,8 @@ if(SLED_BUILD_TESTS)
add_library(hot_reloader_test_dynamic SHARED
src/sled/system/hot_reloader_test_dynamic.cc)
target_link_libraries(hot_reloader_test_dynamic PRIVATE sled)
target_include_directories(hot_reloader_test_dynamic PRIVATE src/)
# target_link_libraries(hot_reloader_test_dynamic PRIVATE sled)
message(
STATUS "HOT_RELOADER_TEST_DYNAMIC_LOCATION ${hot_reloader_test_dynamic}")
get_target_property(HOT_RELOADER_TEST_DYNAMIC_LOCATION

View File

@ -1,4 +1,5 @@
#include <sled/sled.h>
#include "sled/lang/attributes.h"
#include <stdio.h>
void
crash()
@ -19,7 +20,8 @@ sled_hot_loader_main(void *ctx, int op)
int *value_ptr = reinterpret_cast<int *>(userdata);
int crash_type = *value_ptr;
*value_ptr = -1;
LOGD("plugin ", "sled_hot_loader_main: op={}, crash={}", op, crash_type);
fprintf(stderr, "plugin sled_hot_loader_main: op=%d, crash=%d\n", op, crash_type);
// LOGD("plugin ", "sled_hot_loader_main: op={}, crash={}", op, crash_type);
switch (op) {
// On Load