fix: rename builtin static variables to avoid linker ambiguity across modules
This commit is contained in:
@@ -4,7 +4,7 @@ import glob
|
||||
import os.path
|
||||
import re
|
||||
|
||||
PATTERN = re.compile(r'libSource =\n("(.|[\n])*?);')
|
||||
PATTERN = re.compile(r'LibSource =\n("(.|[\n])*?);')
|
||||
|
||||
def copy_builtin(filename):
|
||||
name = os.path.basename(filename)
|
||||
@@ -24,7 +24,7 @@ def copy_builtin(filename):
|
||||
# in the C string literal.
|
||||
wren_source = wren_source.replace('\\', '\\\\')
|
||||
|
||||
constant = "libSource =\n" + wren_source + ";"
|
||||
constant = "LibSource =\n" + wren_source + ";"
|
||||
|
||||
with open("src/vm/wren_" + name + ".c", "r") as f:
|
||||
c_source = f.read()
|
||||
|
||||
Reference in New Issue
Block a user