summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gears/SConscript.dll4
1 files changed, 4 insertions, 0 deletions
diff --git a/gears/SConscript.dll b/gears/SConscript.dll
index d197a71..c987f2d 100644
--- a/gears/SConscript.dll
+++ b/gears/SConscript.dll
@@ -208,6 +208,10 @@ def MyIdlEmitter(target, source, env):
# generated, but since we can't know, we'll just ignore that.
target = [base + '.h', base + '_i.c', base + '_p.c', base + '_data.c']
return (target, source)
+# Copy the builder object so we don't overwrite everyone's
+# emitter with ours.
+import copy
+env['BUILDERS']['TypeLibrary'] = copy.copy(env['BUILDERS']['TypeLibrary'])
env['BUILDERS']['TypeLibrary'].emitter = MyIdlEmitter