Enable LTO and OpenMP in build system
authorRyan Pavlik <ryan.pavlik@collabora.com>
Thu, 21 Jan 2021 20:55:50 +0000 (14:55 -0600)
committerRyan Pavlik <ryan.pavlik@collabora.com>
Tue, 26 Jan 2021 22:00:26 +0000 (16:00 -0600)
debian/rules

index 276f08f4a392bfc81f192a00ca2cf1e7155b8cea..be9e87bd7452e75dba982984bf720cfe6527f77f 100755 (executable)
@@ -12,6 +12,8 @@ endif
 # Tell CMake what the package version will be, to embed in the version string.
 # We do this for upstream's benefit, in lieu of including a git commit hash.
 CMAKEOPTS=-DDEBVERSION=$(DEB_VERSION)
+CMAKEOPTS+= -DENABLE_OPENMP=yes
+CMAKEOPTS+= -DENABLE_LTO=yes
 
 #speed up the build if we are skipping the tests
 ifneq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))