1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
| | diff -ru mrustc-0.10-orig/Makefile mrustc-0.10/Makefile
--- mrustc-0.10-orig/Makefile 2022-09-13 07:49:26.299978699 -0400
+++ mrustc-0.10/Makefile 2022-09-13 07:52:19.243970927 -0400
@@ -38,9 +38,9 @@
# - Disable deleting intermediate files
.SECONDARY:
-LINKFLAGS := -g
+LINKFLAGS :=
LIBS := -lz
-CXXFLAGS := -g -Wall
+CXXFLAGS := -Wall
CXXFLAGS += -std=c++14
#CXXFLAGS += -Wextra
CXXFLAGS += -O2
diff -ru mrustc-0.10-orig/tools/common/Makefile mrustc-0.10/tools/common/Makefile
--- mrustc-0.10-orig/tools/common/Makefile 2022-09-13 07:49:26.335978698 -0400
+++ mrustc-0.10/tools/common/Makefile 2022-09-13 07:50:58.243974567 -0400
@@ -11,7 +11,7 @@
BIN := ../../bin/common_lib.a
OBJS = toml.o path.o debug.o
-CXXFLAGS := -Wall -std=c++14 -g -O2
+CXXFLAGS := -Wall -std=c++14 -O2
CXXFLAGS += $(CXXFLAGS_EXTRA)
diff -ru mrustc-0.10-orig/tools/dump_hirfile/Makefile mrustc-0.10/tools/dump_hirfile/Makefile
--- mrustc-0.10-orig/tools/dump_hirfile/Makefile 2022-09-13 07:49:26.335978698 -0400
+++ mrustc-0.10/tools/dump_hirfile/Makefile 2022-09-13 07:51:02.723974366 -0400
@@ -15,7 +15,7 @@
OBJS := main.o
LINKFLAGS := -g -lpthread -lz
-CXXFLAGS := -Wall -std=c++14 -g -O2
+CXXFLAGS := -Wall -std=c++14 -O2
CXXFLAGS += -I ../common -I ../../src -I ../../src/include
CXXFLAGS += $(CXXFLAGS_EXTRA)
diff -ru mrustc-0.10-orig/tools/minicargo/build.cpp mrustc-0.10/tools/minicargo/build.cpp
--- mrustc-0.10-orig/tools/minicargo/build.cpp 2022-09-13 07:49:26.335978698 -0400
+++ mrustc-0.10/tools/minicargo/build.cpp 2022-09-13 07:47:19.567984395 -0400
@@ -956,7 +956,7 @@
}
}
}
- if( true /*this->enable_debug*/ ) {
+ if( false /*this->enable_debug*/ ) {
args.push_back("-g");
args.push_back("--cfg"); args.push_back("debug_assertions");
}
@@ -1106,7 +1106,7 @@
args.push_back("--crate-type"); args.push_back("bin");
args.push_back("-o"); args.push_back(outfile);
args.push_back("-L"); args.push_back(this->get_output_dir(true).str()); // NOTE: Forces `is_for_host` to true here.
- if( true )
+ if( false )
{
args.push_back("-g");
}
diff -ru mrustc-0.10-orig/tools/minicargo/Makefile mrustc-0.10/tools/minicargo/Makefile
--- mrustc-0.10-orig/tools/minicargo/Makefile 2022-09-13 07:49:26.335978698 -0400
+++ mrustc-0.10/tools/minicargo/Makefile 2022-09-13 07:51:07.011974173 -0400
@@ -16,7 +16,7 @@
OBJS := main.o build.o manifest.o repository.o cfg.o
LINKFLAGS := -g -lpthread
-CXXFLAGS := -Wall -std=c++14 -g -O2
+CXXFLAGS := -Wall -std=c++14 -O2
CXXFLAGS += -I ../common
CXXFLAGS += $(CXXFLAGS_EXTRA)
diff -ru mrustc-0.10-orig/tools/mir_opt_test/Makefile mrustc-0.10/tools/mir_opt_test/Makefile
--- mrustc-0.10-orig/tools/mir_opt_test/Makefile 2022-09-13 07:49:26.339978698 -0400
+++ mrustc-0.10/tools/mir_opt_test/Makefile 2022-09-13 07:51:10.555974014 -0400
@@ -15,7 +15,7 @@
LIBS := ../../bin/mrustc.a ../../bin/common_lib.a
LINKFLAGS := -g -lpthread -lz
-CXXFLAGS := -Wall -std=c++14 -g -O2
+CXXFLAGS := -Wall -std=c++14 -O2
CXXFLAGS += -I ../common -I ../../src/include -I ../../src -I .
CXXFLAGS += -Wno-misleading-indentation # Gets REALLY confused by the TU_ARM macro
diff -ru mrustc-0.10-orig/tools/standalone_miri/Makefile mrustc-0.10/tools/standalone_miri/Makefile
--- mrustc-0.10-orig/tools/standalone_miri/Makefile 2022-09-13 07:49:26.339978698 -0400
+++ mrustc-0.10/tools/standalone_miri/Makefile 2022-09-13 07:51:14.731973826 -0400
@@ -15,7 +15,7 @@
OBJS += miri.o miri_extern.o miri_intrinsic.o
LINKFLAGS := -g -lpthread
-CXXFLAGS := -Wall -std=c++14 -g -O2
+CXXFLAGS := -Wall -std=c++14 -O2
CXXFLAGS += -I ../common -I ../../src/include -I .
CXXFLAGS += -Wno-misleading-indentation # Gets REALLY confused by the TU_ARM macro
diff -ru mrustc-0.10-orig/tools/testrunner/Makefile mrustc-0.10/tools/testrunner/Makefile
--- mrustc-0.10-orig/tools/testrunner/Makefile 2022-09-13 07:49:26.339978698 -0400
+++ mrustc-0.10/tools/testrunner/Makefile 2022-09-13 07:51:24.819973373 -0400
@@ -5,8 +5,8 @@
BIN := ../../bin/testrunner
OBJS := main.o path.o
-LINKFLAGS := -g
-CXXFLAGS := -Wall -std=c++14 -g -O2
+LINKFLAGS :=
+CXXFLAGS := -Wall -std=c++14 -O2
CXXFLAGS += $(CXXFLAGS_EXTRA)
LINKFLAGS += $(LINKFLAGS_EXTRA)
|