Skip to content

Commit 208f5f4

Browse files
committed
m143-da51f0d60e
1 parent 5cd392e commit 208f5f4

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ permissions:
1717
contents: write
1818

1919
env:
20-
version: m132-9ab7c2064b
20+
version: m143-da51f0d60e
2121

2222
jobs:
2323
macos:

patches/warn_SkMatrix.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
diff --git a/include/core/SkMatrix.h b/include/core/SkMatrix.h
2-
index 96a12f111e..5ffd87e13d 100644
2+
index d36afa9af2..39df197f4a 100644
33
--- a/include/core/SkMatrix.h
44
+++ b/include/core/SkMatrix.h
5-
@@ -93,7 +93,7 @@ public:
5+
@@ -85,7 +85,7 @@ public:
66
return m;
77
}
88
[[nodiscard]] static SkMatrix Translate(SkVector t) { return Translate(t.x(), t.y()); }
99
- [[nodiscard]] static SkMatrix Translate(SkIVector t) { return Translate(t.x(), t.y()); }
1010
+ [[nodiscard]] static SkMatrix Translate(SkIVector t) { return Translate((SkScalar) t.x(), (SkScalar) t.y()); }
1111

12-
/** Sets SkMatrix to rotate by |deg| about a pivot point at (0, 0).
12+
[[nodiscard]] static SkMatrix ScaleTranslate(float sx, float sy, float tx, float ty);
1313

script/build.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,10 @@ def main():
3939
'skia_use_system_freetype2=false',
4040
# 'skia_enable_gpu=true',
4141
'skia_use_metal=true',
42-
'extra_cflags_cc=["-frtti"]'
42+
'extra_cflags_cc=["-frtti", "-stdlib=libc++"]'
4343
]
44-
if 'arm64' == machine:
45-
args += ['extra_cflags=["-stdlib=libc++"]']
46-
else:
47-
args += ['extra_cflags=["-stdlib=libc++", "-mmacosx-version-min=10.13"]']
44+
if 'x64' == machine:
45+
args += ['extra_cflags=["-mmacosx-version-min=10.13"]']
4846
elif 'linux' == system:
4947
args += [
5048
'skia_use_system_freetype2=true',
@@ -89,14 +87,16 @@ def main():
8987

9088
# Extract all unique defines from ninja commands
9189
ninja_commands = subprocess.check_output([os.path.join('third_party/ninja', ninja), '-C', out, '-t', 'commands'], text=True)
92-
defines = set()
93-
for match in re.finditer(r'-D(\S+)', ninja_commands):
94-
defines.add(match.group(1))
95-
defines_file = os.path.join(out, 'defines.cmake')
96-
with open(defines_file, 'w') as f:
90+
defines = {}
91+
for match in re.finditer(r'-D([^ =]+)(?:=(\S+))?', ninja_commands):
92+
defines[match.group(1)] = match.group(2)
93+
with open(os.path.join(out, 'defines.cmake'), 'w') as f:
9794
f.write('add_definitions(\n')
98-
for define in sorted(defines):
99-
f.write(' -D' + define.replace('\\', '') + '\n')
95+
for key, value in sorted(defines.items()):
96+
if value is None:
97+
f.write(f' -D{key}\n')
98+
else:
99+
f.write(f' -D{key}={value.replace('\\', '')}\n')
100100
f.write(')\n')
101101

102102
return 0

0 commit comments

Comments
 (0)