Skip to content

Commit 44034c4

Browse files
committed
squash! QJS_BUILD_LIBC
1 parent ef3cd55 commit 44034c4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

amalgam.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const quickjs_libc_c = loadFile("quickjs-libc.c")
1919
const quickjs_libc_h = loadFile("quickjs-libc.h")
2020
const quickjs_opcode_h = loadFile("quickjs-opcode.h")
2121

22-
let source = "#if defined(CONFIG_QUICKJS_LIBC) && defined(__linux__) && !defined(_GNU_SOURCE)\n"
22+
let source = "#if defined(QJS_BUILD_LIBC) && defined(__linux__) && !defined(_GNU_SOURCE)\n"
2323
+ "#define _GNU_SOURCE\n"
2424
+ "#endif\n"
2525
+ quickjs_c_atomics_h
@@ -35,10 +35,10 @@ let source = "#if defined(CONFIG_QUICKJS_LIBC) && defined(__linux__) && !defined
3535
+ libbf_c
3636
+ libregexp_c
3737
+ libunicode_c
38-
+ "#ifdef CONFIG_QUICKJS_LIBC\n"
38+
+ "#ifdef QJS_BUILD_LIBC\n"
3939
+ quickjs_libc_h
4040
+ quickjs_libc_c
41-
+ "#endif // CONFIG_QUICKJS_LIBC\n"
41+
+ "#endif // QJS_BUILD_LIBC\n"
4242
source = source.replace(/#include "quickjs-atom.h"/g, quickjs_atom_h)
4343
source = source.replace(/#include "quickjs-opcode.h"/g, quickjs_opcode_h)
4444
source = source.replace(/#include "libregexp-opcode.h"/g, libregexp_opcode_h)

0 commit comments

Comments
 (0)