mirror of
https://github.com/tihmstar/futurerestore.git
synced 2025-07-07 15:50:32 +00:00
ASAN documentation, improve building.
This commit is contained in:
parent
abeda56f71
commit
494989e367
|
@ -1,5 +1,6 @@
|
||||||
cmake_minimum_required(VERSION 3.22)
|
cmake_minimum_required(VERSION 3.22)
|
||||||
find_package(PkgConfig REQUIRED)
|
find_package(PkgConfig REQUIRED)
|
||||||
|
execute_process(COMMAND git submodule update --init --recursive WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}" OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||||
set(ignoreMe "${NO_PKGCFG}")
|
set(ignoreMe "${NO_PKGCFG}")
|
||||||
set(ignoreMe "${ASAN}")
|
set(ignoreMe "${ASAN}")
|
||||||
set(ignoreMe "${ARCH}")
|
set(ignoreMe "${ARCH}")
|
||||||
|
|
|
@ -52,17 +52,21 @@
|
||||||
If you want to disable pkg-config linking you can provide the `NO_PKGCFG` flag.
|
If you want to disable pkg-config linking you can provide the `NO_PKGCFG` flag.
|
||||||
|
|
||||||
By default pkg-config linking is enabled. dep_root will be used when disabled.
|
By default pkg-config linking is enabled. dep_root will be used when disabled.
|
||||||
* Example: `./build.sh -DARCH=x86_64 -DNO_PKGCFG`
|
* Example: `./build.sh -DARCH=x86_64 -DNO_PKGCFG=1`
|
||||||
* or `NO_PKGCFG=1 ./build.sh -DARCH=x86_64`
|
* or `NO_PKGCFG=1 ./build.sh -DARCH=x86_64`
|
||||||
|
|
||||||
If you want to overwrite the compiler on mac you can provide `NO_XCODE` flag.
|
If you want to overwrite the compiler on mac you can provide `NO_XCODE` flag.
|
||||||
* Example: `CC=gcc CXX=g++ ./build.sh -DARCH=x86_64 -DNO_XCODE`
|
* Example: `CC=gcc CXX=g++ ./build.sh -DARCH=x86_64 -DNO_XCODE=1`
|
||||||
* or `NO_XCODE=1 CC=gcc CXX=g++ ./build.sh -DARCH=x86_64`
|
* or `NO_XCODE=1 CC=gcc CXX=g++ ./build.sh -DARCH=x86_64`
|
||||||
|
|
||||||
If you want to disable cmake reconfigure for each build, you can provide the `NO_CLEAN` flag.
|
If you want to disable cmake reconfigure for each build, you can provide the `NO_CLEAN` flag.
|
||||||
* Example: `NO_CLEAN=1 ./build.sh -DARCH=x86_64`
|
* Example: `NO_CLEAN=1 ./build.sh -DARCH=x86_64`
|
||||||
* By default it will remove cmake and cache and reconfigure for each subsequent build.
|
* By default it will remove cmake and cache and reconfigure for each subsequent build.
|
||||||
|
|
||||||
|
If you enable the os built in AddressSanitizer feature use the `ASAN` flag.
|
||||||
|
* Example: `ASAN=1 ./build.sh -DARCH=x86_64`
|
||||||
|
* or `./build.sh -DARCH=x86_64 -DASAN=1`
|
||||||
|
|
||||||
The compiled binary will be located at:
|
The compiled binary will be located at:
|
||||||
* `cmake-build-release/src/futurerestore` for release builds
|
* `cmake-build-release/src/futurerestore` for release builds
|
||||||
* `cmake-build-debug/src/futurerestore` for debug builds
|
* `cmake-build-debug/src/futurerestore` for debug builds
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# futurerestore
|
# futurerestore
|
||||||
[](https://github.com/futurerestore/futurerestore/actions)
|
[](https://github.com/futurerestore/futurerestore/actions)
|
||||||
|
|
||||||
__Make sure to read this page before continuing.__
|
__Make sure to read this page before continuing.__
|
||||||
|
|
||||||
|
|
2
build.sh
2
build.sh
|
@ -8,7 +8,7 @@ export CXX="$(which clang++)"
|
||||||
which xcrun >/dev/null
|
which xcrun >/dev/null
|
||||||
if [[ "$?" -lt 1 ]]; then export CC="$(xcrun --find clang)"; export CXX="$(xcrun --find clang++)"; fi
|
if [[ "$?" -lt 1 ]]; then export CC="$(xcrun --find clang)"; export CXX="$(xcrun --find clang++)"; fi
|
||||||
echo "[*] Building futurerestore"
|
echo "[*] Building futurerestore"
|
||||||
export FR_INSTALL_DIR="/usr/local/bin"
|
export FR_INSTALL_DIR="/usr/local"
|
||||||
if [[ -z "$NO_CLEAN" ]]; then rm -rf cmake-build-release cmake-build-debug; fi
|
if [[ -z "$NO_CLEAN" ]]; then rm -rf cmake-build-release cmake-build-debug; fi
|
||||||
if [[ "$RELEASE" == "1" ]]
|
if [[ "$RELEASE" == "1" ]]
|
||||||
then
|
then
|
||||||
|
|
2
external/idevicerestore
vendored
2
external/idevicerestore
vendored
|
@ -1 +1 @@
|
||||||
Subproject commit 9dc323733e296283a58df4a27d00c4108793742d
|
Subproject commit 75092808043a67527ad94c263851324d456fe507
|
2
external/tsschecker
vendored
2
external/tsschecker
vendored
|
@ -1 +1 @@
|
||||||
Subproject commit a17dbfcac2d6760b6581b1e595d051fda76a559d
|
Subproject commit a600e296a3f2ba764e7ab1f164d10e4e7b82e127
|
|
@ -88,5 +88,5 @@ add_definitions(
|
||||||
-DVERSION_COMMIT_SHA="${VERSION_COMMIT_SHA}"
|
-DVERSION_COMMIT_SHA="${VERSION_COMMIT_SHA}"
|
||||||
-DVERSION_RELEASE="${VERSION_RELEASE}")
|
-DVERSION_RELEASE="${VERSION_RELEASE}")
|
||||||
install(TARGETS futurerestore
|
install(TARGETS futurerestore
|
||||||
DESTINATION ${CMAKE_INSTALL_PREFIX})
|
DESTINATION "${CMAKE_INSTALL_PREFIX}/bin")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue