mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-08 13:38:41 +00:00
feat(install): add options to choose which judger component to build
For only web, there is no need to build checkers. There are so many checkers that will slow down make speed. Also for some situations, users can build checkers without runners.
This commit is contained in:
parent
d413b746eb
commit
73aec02216
@ -69,7 +69,7 @@ UOJEOF
|
||||
#define UOJ_JUDGER_PYTHON3_VERSION "3.6"
|
||||
#define UOJ_JUDGER_FPC_VERSION "3.0.4"
|
||||
UOJEOF
|
||||
make -j$(($(nproc) + 1)) && cd ../../install/web
|
||||
make runner -j$(($(nproc) + 1)) && cd ../../install/web
|
||||
}
|
||||
|
||||
initProgress(){
|
||||
|
@ -26,10 +26,11 @@ EXE = main_judger \
|
||||
run/formatter \
|
||||
run/run_program \
|
||||
run/run_interaction \
|
||||
builtin/judger/judger \
|
||||
$(EXE_CHECKER)
|
||||
builtin/judger/judger
|
||||
|
||||
all: $(EXE)
|
||||
all: $(EXE) $(EXE_CHECKER)
|
||||
runner: $(EXE)
|
||||
checker: $(EXE_CHECKER)
|
||||
|
||||
% : %.cpp
|
||||
$(CXX) $(CXXFLAGS) $(EXTRA_CXXFLAGS) $< -o $@
|
||||
@ -45,4 +46,4 @@ main_judger: include
|
||||
$(EXE_CHECKER): include/testlib.h
|
||||
|
||||
clean:
|
||||
rm -f $(EXE)
|
||||
rm -f $(EXE) $(EXE_CHECKER)
|
||||
|
Loading…
Reference in New Issue
Block a user