Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ ARG DEBIAN_FRONTEND=noninteractive
# C++ and Python
RUN apt-get update \
&& apt-get install -y \
libboost-all-dev \
python3.9 \
python3-pip \
clang-14 \
Expand Down
37 changes: 37 additions & 0 deletions compare_hashes/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
cmake_minimum_required(VERSION 3.16)
project(Lichen)
set(CMAKE_CXX_STANDARD 14)

set(Boost_USE_STATIC_LIBS ON)
find_package(Boost REQUIRED COMPONENTS
system
filesystem
)

link_libraries("-static")

add_executable(Lichen
compare_hashes.cpp
submission.cpp
)

target_link_libraries(Lichen
Boost::system
Boost::filesystem
)

target_compile_options(Lichen PRIVATE
-Wall
-Wextra
-Werror
-g
-O3
-funroll-loops
)
target_link_options(Lichen PRIVATE
-flto
)

include_directories(/usr/local/submitty/Lichen/vendor)

set_target_properties(Lichen PROPERTIES OUTPUT_NAME compare_hashes.out)
5 changes: 3 additions & 2 deletions install_lichen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,9 @@ fi
####################################################################################################
# compile & install the hash comparison tool

pushd "${lichen_repository_dir}" > /dev/null
clang++ -I "${lichen_vendor_dir}" -lboost_system -lboost_filesystem -Wall -Wextra -Werror -g -O3 -flto -funroll-loops -std=c++11 compare_hashes/compare_hashes.cpp compare_hashes/submission.cpp -o "${lichen_installation_dir}/compare_hashes/compare_hashes.out"
pushd "${lichen_installation_dir}/compare_hashes" > /dev/null
cmake "$lichen_repository_dir/compare_hashes"
Comment thread
williamjallen marked this conversation as resolved.
cmake --build . --parallel "$(nproc)"
if [ "$?" -ne 0 ]; then
echo -e "ERROR: FAILED TO BUILD HASH COMPARISON TOOL\n"
exit 1
Expand Down
Loading