Skip to content

Commit 3141551

Browse files
committed
ci
1 parent 4631f87 commit 3141551

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

scripts/build_libffi.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,10 @@ async function configureBuildTarget(target, libffiPath, baseEnv) {
127127

128128
const env = buildTargetEnv(baseEnv, target);
129129

130-
run("../configure", ["--host", target.host], { cwd: targetDir, env });
130+
run("../configure", ["--disable-docs", "--host", target.host], {
131+
cwd: targetDir,
132+
env,
133+
});
131134
run("make", [], { cwd: targetDir, env });
132135
}
133136

@@ -137,6 +140,9 @@ function buildTargetEnv(baseEnv, target) {
137140
CC: `xcrun -sdk ${target.sdk} clang -arch ${target.arch}`,
138141
LD: `xcrun -sdk ${target.sdk} ld -arch ${target.arch}`,
139142
CFLAGS: `${target.minVersionFlag} -w`,
143+
// Old libffi asm trips Apple clang's CFI handling on modern toolchains.
144+
// Force configure to skip CFI pseudo-op usage in generated config headers.
145+
gcc_cv_as_cfi_pseudo_op: "no",
140146
};
141147
}
142148

0 commit comments

Comments
 (0)