Skip to content

Commit 9cbffa4

Browse files
[Feature:Plagiarism] Hash comparison compiler optimizations (#55)
1 parent 0f2e364 commit 9cbffa4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

install_lichen.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ mkdir -p ${lichen_installation_dir}/tools/assignments
5252
#--------------------
5353
# plaintext tool
5454
pushd ${lichen_repository_dir} > /dev/null
55-
clang++ -I ${lichen_vendor_dir} -std=c++11 -Wall tokenizer/plaintext/plaintext_tokenizer.cpp -o ${lichen_installation_dir}/bin/plaintext_tokenizer.out
55+
clang++ -I ${lichen_vendor_dir} -std=c++11 -Wall -O3 tokenizer/plaintext/plaintext_tokenizer.cpp -o ${lichen_installation_dir}/bin/plaintext_tokenizer.out
5656
if [ $? -ne 0 ]; then
5757
echo -e "ERROR: FAILED TO BUILD PLAINTEXT TOKENIZER\n"
5858
exit 1
@@ -63,7 +63,7 @@ popd > /dev/null
6363
#-------------------------------------------
6464
# compile & install the hash comparison tool
6565
pushd ${lichen_repository_dir} > /dev/null
66-
clang++ -I ${lichen_vendor_dir} -lboost_system -lboost_filesystem -Wall -g -std=c++11 -Wall compare_hashes/compare_hashes.cpp -o ${lichen_installation_dir}/bin/compare_hashes.out
66+
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 -o ${lichen_installation_dir}/bin/compare_hashes.out
6767
if [ $? -ne 0 ]; then
6868
echo -e "ERROR: FAILED TO BUILD HASH COMPARISON TOOL\n"
6969
exit 1

0 commit comments

Comments
 (0)