Skip to content

Commit 9c23bd4

Browse files
committed
⬆ Update to Dart 3.1.3
1 parent 348e278 commit 9c23bd4

File tree

2 files changed

+17
-18
lines changed

2 files changed

+17
-18
lines changed

.dart_version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# This file contains the current Dart version we build against
2-
3.0.7
2+
3.1.3

dart_sdk.patch

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
diff --git a/BUILD.gn b/BUILD.gn
2-
index 4d88fd67d86..5898483f0e9 100644
2+
index 233a0900e55..5010af8fc55 100644
33
--- a/BUILD.gn
44
+++ b/BUILD.gn
55
@@ -99,6 +99,10 @@ group("create_sdk") {
@@ -14,25 +14,26 @@ index 4d88fd67d86..5898483f0e9 100644
1414
public_deps = [ "sdk:create_platform_sdk" ]
1515
}
1616
diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn
17-
index f6c2c6625dc..f3986381da4 100644
17+
index fb45d1ec551..9ccb1a27f4a 100644
1818
--- a/build/config/compiler/BUILD.gn
1919
+++ 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+
}
2830
}
2931

30-
# Linux-specific compiler flags setup.
3132
diff --git a/runtime/bin/BUILD.gn b/runtime/bin/BUILD.gn
32-
index e757b71d483..aa10a453907 100644
33+
index 91ebf8feb65..4ecf43807d4 100644
3334
--- a/runtime/bin/BUILD.gn
3435
+++ 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 &&
3637
}
3738
}
3839
}
@@ -53,10 +54,6 @@ index e757b71d483..aa10a453907 100644
5354
+
5455
+ complete_static_lib = true
5556
+
56-
+ if (dart_use_tcmalloc) {
57-
+ deps += [ "//third_party/tcmalloc" ]
58-
+ }
59-
+
6057
+ include_dirs = [
6158
+ "..",
6259
+ "//third_party",
@@ -72,6 +69,8 @@ index e757b71d483..aa10a453907 100644
7269
+ "snapshot_utils.h",
7370
+ "gzip.cc",
7471
+ "gzip.h",
72+
+ "dartdev_isolate.cc",
73+
+ "dartdev_isolate.h",
7574
+ "dfe.cc",
7675
+ "dfe.h",
7776
+ "loader.cc",

0 commit comments

Comments
 (0)