1
1
diff --git a/BUILD.gn b/BUILD.gn
2
- index 4d88fd67d86..5898483f0e9 100644
2
+ index 233a0900e55..5010af8fc55 100644
3
3
--- a/BUILD.gn
4
4
+++ b/BUILD.gn
5
5
@@ -99,6 +99,10 @@ group("create_sdk") {
@@ -14,25 +14,26 @@ index 4d88fd67d86..5898483f0e9 100644
14
14
public_deps = [ "sdk:create_platform_sdk" ]
15
15
}
16
16
diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn
17
- index f6c2c6625dc..f3986381da4 100644
17
+ index fb45d1ec551..9ccb1a27f4a 100644
18
18
--- a/build/config/compiler/BUILD.gn
19
19
+++ b/build/config/compiler/BUILD.gn
20
- @@ -250,8 +250,8 @@ config("compiler") {
21
- }
22
-
23
- if (is_android || is_linux || is_mac || is_fuchsia) {
24
- - cflags += [ "-fPIE" ]
25
- - ldflags += [ "-fPIE" ]
26
- + cflags += [ "-fPIC" ]
27
- + ldflags += [ "-fPIC" ]
20
+ @@ -269,8 +269,9 @@ config("compiler") {
21
+ cflags += [ "-fPIC" ]
22
+ ldflags += [ "-fPIC" ]
23
+ } else {
24
+ - cflags += [ "-fPIE" ]
25
+ - ldflags += [ "-fPIE" ]
26
+ + # dart_shared_library overriden - we need -fPIC to properly build
27
+ + cflags += [ "-fPIC" ]
28
+ + ldflags += [ "-fPIC" ]
29
+ }
28
30
}
29
31
30
- # Linux-specific compiler flags setup.
31
32
diff --git a/runtime/bin/BUILD.gn b/runtime/bin/BUILD.gn
32
- index e757b71d483..aa10a453907 100644
33
+ index 91ebf8feb65..4ecf43807d4 100644
33
34
--- a/runtime/bin/BUILD.gn
34
35
+++ b/runtime/bin/BUILD.gn
35
- @@ -1110 ,3 +1110,49 @@ if (defined(is_linux) && is_linux && defined(is_asan) && is_asan &&
36
+ @@ -1143 ,3 +1143,47 @@ if (defined(is_linux) && is_linux && defined(is_asan) && is_asan &&
36
37
}
37
38
}
38
39
}
@@ -53,10 +54,6 @@ index e757b71d483..aa10a453907 100644
53
54
+
54
55
+ complete_static_lib = true
55
56
+
56
- + if (dart_use_tcmalloc) {
57
- + deps += [ "//third_party/tcmalloc" ]
58
- + }
59
- +
60
57
+ include_dirs = [
61
58
+ "..",
62
59
+ "//third_party",
@@ -72,6 +69,8 @@ index e757b71d483..aa10a453907 100644
72
69
+ "snapshot_utils.h",
73
70
+ "gzip.cc",
74
71
+ "gzip.h",
72
+ + "dartdev_isolate.cc",
73
+ + "dartdev_isolate.h",
75
74
+ "dfe.cc",
76
75
+ "dfe.h",
77
76
+ "loader.cc",
0 commit comments