Skip to content

Commit 2606b50

Browse files
committed
Disable build-time-generated IDs for the purpose of Reproducible Builds
1 parent 6bcf734 commit 2606b50

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

app/src/main/cpp/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ cmake_minimum_required(VERSION 3.22.1)
1212
# build script scope).
1313
project("usb_hid_client")
1414

15+
# Disable build-time-generated IDs for the purpose of Reproducible Builds
16+
#
17+
# Source: https://gitlab.com/IzzyOnDroid/repo/-/wikis/Reproducible-Builds/RB-Hints-for-Developers#no-funny-build-time-generated-ids
18+
add_link_options("-Wl,--build-id=none")
19+
1520
# Creates and names a library, sets it as either STATIC
1621
# or SHARED, and provides the relative paths to its source code.
1722
# You can define multiple libraries, and CMake builds them for you.

0 commit comments

Comments
 (0)