Skip to content

Commit

Permalink
compile speedups with clang+lld
Browse files Browse the repository at this point in the history
  • Loading branch information
katrinafyi committed Apr 4, 2024
1 parent dccf0f5 commit d877b6b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion offlineASL-cpp/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ dir="$(dirname "$0")"
cd "$dir"
# echo ":gen A64 aarch64.+ cpp ./subprojects" | dune exec asli

meson setup --reconfigure build
CXX=$(which clang++) CXX_LD=$(which ld.lld) meson setup --reconfigure build
pushd build
meson compile
DESTDIR=$(pwd)/prefix meson install
Expand Down
4 changes: 3 additions & 1 deletion offlineASL-cpp/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ project('offlineasl', 'cpp',
'warning_level=3',
'cpp_std=c++20',
'buildtype=debug',
'strip=true',
# 'optimization=1', # slow and increases file size?
# 'b_lto=true', # too slow
# 'b_lto_mode=thin',
]
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
#include <stdexcept>
#include <aslp/interface.hpp>
#include <aslp/generated/aslp_lifter.hpp>
#include <aslp/llvm_lifter_traits.hpp>
3 changes: 0 additions & 3 deletions offlineASL-cpp/subprojects/aslp-lifter/src/dummy.cpp

This file was deleted.

0 comments on commit d877b6b

Please sign in to comment.