[pkg-d-commits] [ldc] 02/03: pass-d-compiler-flags.patch: Pass D compiler flags through

Matthias Klumpp mak at moszumanska.debian.org
Wed Oct 5 17:01:50 UTC 2016


This is an automated email from the git hooks/post-receive script.

mak pushed a commit to branch master
in repository ldc.

commit cce55a7225a428c5056d572324f92a0a2a11e2e0
Author: Matthias Klumpp <matthias at tenstral.net>
Date:   Wed Oct 5 18:39:19 2016 +0200

    pass-d-compiler-flags.patch: Pass D compiler flags through
---
 debian/patches/04_pass-d-compiler-flags.patch | 20 ++++++++++++++++++++
 debian/patches/series                         |  1 +
 2 files changed, 21 insertions(+)

diff --git a/debian/patches/04_pass-d-compiler-flags.patch b/debian/patches/04_pass-d-compiler-flags.patch
new file mode 100644
index 0000000..bbd36c1
--- /dev/null
+++ b/debian/patches/04_pass-d-compiler-flags.patch
@@ -0,0 +1,20 @@
+From 4071f0e8d9376c5503dc55795902102167dbb72e Mon Sep 17 00:00:00 2001
+From: Konstantinos Margaritis <markos at freevec.org>
+Date: Wed, 5 Oct 2016 17:34:59 +0300
+Subject: pass D_COMPILER_FLAGS
+
+---
+ runtime/CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/runtime/CMakeLists.txt
++++ b/runtime/CMakeLists.txt
+@@ -12,7 +12,7 @@
+ set(BUILD_BC_LIBS         OFF                                       CACHE BOOL    "Build the runtime as LLVM bitcode libraries")
+ set(INCLUDE_INSTALL_DIR   ${INCLUDE_INSTALL_DIR}                    CACHE PATH    "Path to install D modules to")
+ set(BUILD_SHARED_LIBS     ${BUILD_SHARED_LIBS}                      CACHE BOOL    "Whether to build the runtime as a shared library")
+-set(D_FLAGS               -w                                        CACHE STRING  "Runtime build flags, separated by ;")
++set(D_FLAGS               ${D_COMPILER_FLAGS}                       CACHE STRING  "Runtime build flags, separated by ;")
+ set(D_FLAGS_DEBUG         -g;-link-debuglib                         CACHE STRING  "Runtime build flags (debug libraries), separated by ;")
+ set(D_FLAGS_RELEASE       -O3;-release                              CACHE STRING  "Runtime build flags (release libraries), separated by ;")
+ if(MSVC)
diff --git a/debian/patches/series b/debian/patches/series
index 6dd99a6..46e953c 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
 01_phobos-ldc-enable-shlibs.diff
 02_ldc_include_path.diff
 03_static-PIC.patch
+04_pass-d-compiler-flags.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-d/ldc.git



More information about the pkg-d-commits mailing list