Skip to content

Commit 93c742b

Browse files
authored
[Bugfix:System] Don't use -ofast for compilation (#107)
### Please check if the PR fulfills these requirements: * [ ] Tests for the changes have been added/updated (if possible) * [ ] Documentation has been updated/added if relevant ### What is the current behavior? <!-- List issue if it fixes/closes/implements one using the "Fixes #<number>" or "Closes #<number>" syntax --> When compiling, the `-ofast` flag is used even though it is not standards compliant and higher versions of clang will report errors with `json.hpp`. ### What is the new behavior? The `-o3` flag is used instead to ensure runtime speed is still as fast as possible without causing errors. ### Other information? <!-- Is this a breaking change? --> <!-- How did you test -->
1 parent a6d9377 commit 93c742b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

install_lichen.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ fi
5555
# compile & install the hash comparison tool
5656

5757
pushd "${lichen_repository_dir}" > /dev/null
58-
clang++ -I "${lichen_vendor_dir}" -lboost_system -lboost_filesystem -Wall -Wextra -Werror -g -Ofast -flto -funroll-loops -std=c++11 compare_hashes/compare_hashes.cpp compare_hashes/submission.cpp -o "${lichen_installation_dir}/compare_hashes/compare_hashes.out"
58+
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"
5959
if [ "$?" -ne 0 ]; then
6060
echo -e "ERROR: FAILED TO BUILD HASH COMPARISON TOOL\n"
6161
exit 1

0 commit comments

Comments
 (0)