Skip to content

Commit a9f127d

Browse files
committed
fix clang option --export-all to --export=hook,--export=cbak
1 parent 02eb666 commit a9f127d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler-api/src/chooks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ function get_clang_options() {
137137

138138
function get_lld_options(options: string) {
139139
// --sysroot=${sysroot} is already included in compiler options
140-
const clang_flags = `--no-standard-libraries -nostartfiles -Wl,--allow-undefined,--no-entry,--export-all`;
140+
const clang_flags = `--no-standard-libraries -nostartfiles -Wl,--allow-undefined,--no-entry,--export=hook,--export=cbak`;
141141
if (!options) {
142142
return clang_flags;
143143
}

0 commit comments

Comments
 (0)