mirror of
https://github.com/itsjunetime/tdf.git
synced 2026-06-01 23:51:46 -04:00
Add initial support for doing benchmarking and some starting info on how to build the benchmark stuff with poppler debug info
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env bash
|
||||
# 1. Pull the git source of poppler
|
||||
# 2. cd poppler
|
||||
# 3. git checkout poppler-23.07.0
|
||||
# 4. mkdir build
|
||||
# 5. cd build
|
||||
# 6. cmake .. -DENABLE_GPGME=OFF -DENABLE_QT5=OFF -DENABLE_QT6=OFF -DENABLE_BOOST=OFF -DBUILD_SHARED_LIBS=OFF
|
||||
# 7. cmake --build . --parallel $(nproc)
|
||||
env SYSTEM_DEPS_POPPLER_GLIB_LINK=static \
|
||||
SYSTEM_DEPS_POPPLER_GLIB_NO_PKG_CONFIG=1 \
|
||||
SYSTEM_DEPS_POPPLER_GLIB_SEARCH_NATIVE=/path/to/poppler/build/glib \
|
||||
SYSTEM_DEPS_POPPLER_GLIB_LIB=poppler-glib \
|
||||
cargo perf --bin for_profiling --
|
||||
@@ -0,0 +1,2 @@
|
||||
#!/usr/bin/env bash
|
||||
RUSTFLAGS="-Cpanic=abort -Ccodegen-units=1 -Cembed-bitcode=yes -Zdylib-lto -Copt-level=s -Zlocation-detail=none -Cstrip=symbols -Ctarget-cpu=native" cargo -Z build-std=std,panic_abort -Z build-std-features=panic_immediate_abort build --profile production --target "$(rustc +nightly -Z unstable-options --print target-spec-json | jq -r '."llvm-target"')"
|
||||
Reference in New Issue
Block a user