Skip to content

Commit

Permalink
update the build script
Browse files Browse the repository at this point in the history
  • Loading branch information
yigonghu committed Jul 25, 2023
1 parent 789dac4 commit e8ec3aa
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 0 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ project(psandbox_userlib)
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/module ${CMAKE_MODULE_PATH})

set(CMAKE_CXX_STANDARD 11)
FIND_PACKAGE(PkgConfig REQUIRED)
PKG_CHECK_MODULES(GLIB REQUIRED glib-2.0)

set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

Expand Down
1 change: 0 additions & 1 deletion libs/src/psandbox.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
#include <string.h>
#include <errno.h>
#include <time.h>
#include <glib.h>
#include <sys/time.h>
#include "syscall.h"
#include <signal.h>
Expand Down
6 changes: 6 additions & 0 deletions setup_pbox_lib.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

sudo apt-get install -y cmake
mkdir -p build && cd build
cmake ..
make -j $(nproc)

0 comments on commit e8ec3aa

Please sign in to comment.