Skip to content

Commit a05817e

Browse files
committed
Optimize sandbox-exec size
1 parent 31228c2 commit a05817e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ install(TARGETS default-scoring DESTINATION "${TIOJ_DATA_DIR}/")
100100
add_executable(sandbox-exec "src/tioj/sandbox_main.cpp" "src/tioj/sandbox.cpp" "src/tioj/sandbox.h")
101101
target_link_libraries(sandbox-exec CJail::libcjail)
102102
target_compile_options(sandbox-exec PUBLIC -Os -static) # note that later flags will override previous ones
103-
target_link_options(sandbox-exec PUBLIC -static -pthread)
103+
target_link_options(sandbox-exec PUBLIC -static -pthread -Wl,--gc-sections)
104104
install(TARGETS sandbox-exec DESTINATION "${TIOJ_DATA_DIR}/")
105105

106106
# headers for judge

src/server_io.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#include <string>
55
#include "tioj/submission.h"
66

7-
const std::string kVersionCode = "1.2.0";
7+
const std::string kVersionCode = "1.2.1";
88
extern std::string kTIOJUrl;
99
extern std::string kTIOJKey;
1010
extern size_t kMaxQueue;

0 commit comments

Comments
 (0)