~angelsl/ubuntu/wily/gcc-5/mips-cross

« back to all changes in this revision

Viewing changes to debian/patches/gdc-driver-nophobos.diff

  • Committer: angelsl
  • Date: 2015-10-30 03:30:35 UTC
  • Revision ID: angelsl-20151030033035-rmug41zm8hyjgisg
Original import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# DP: Modify gdc driver to have no libphobos by default.
 
2
 
 
3
Index: b/src/gcc/d/d-lang.cc
 
4
===================================================================
 
5
--- a/src/gcc/d/d-lang.cc
 
6
+++ b/src/gcc/d/d-lang.cc
 
7
@@ -185,7 +185,7 @@ static void
 
8
 d_init_options_struct (gcc_options *opts)
 
9
 {
 
10
   // GCC options
 
11
-  opts->x_flag_exceptions = 1;
 
12
+  opts->x_flag_exceptions = 0;
 
13
 
 
14
   // Avoid range issues for complex multiply and divide.
 
15
   opts->x_flag_complex_method = 2;
 
16
Index: b/src/gcc/d/d-spec.cc
 
17
===================================================================
 
18
--- a/src/gcc/d/d-spec.cc
 
19
+++ b/src/gcc/d/d-spec.cc
 
20
@@ -93,7 +93,7 @@ lang_specific_driver (cl_decoded_option
 
21
 
 
22
   /* If nonzero, use the standard D runtime library when linking with
 
23
      standard libraries. */
 
24
-  int phobos = 1;
 
25
+  int phobos = 0;
 
26
 
 
27
   /* The number of arguments being added to what's in argv, other than
 
28
      libraries.  We use this to track the number of times we've inserted