Skip to content

Commit 94f435d

Browse files
committed
Bug 1828577 - Properly set *-stl-wrapper.template.h as an input to the make-stl-wrappers script. r=firefox-build-system-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D175734
1 parent 7dc58e5 commit 94f435d

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

config/make-stl-wrappers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# generate all the files in header_list
1111

1212

13-
def gen_wrappers(unused, outdir, compiler, template_file, *header_list):
13+
def gen_wrappers(unused, template_file, outdir, compiler, *header_list):
1414
template = open(template_file, "r").read()
1515

1616
for header in header_list:

config/moz.build

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ if CONFIG["WRAP_STL_INCLUDES"]:
4949
# containing generated files; if this is changed here then the code in
5050
# GeneratedFile.__init__ in python/mozbuild/mozbuild/frontend/data.py
5151
# might need to be updated accordingly as well.
52-
template_file = SRCDIR + "/%s-stl-wrapper.template.h" % stl_compiler
52+
template_file = "%s-stl-wrapper.template.h" % stl_compiler
5353
output_dir = "/dist/stl_wrappers"
5454
# We have to use a sentinel file as the first file because the
5555
# file_generate action will create it for us, but we want to create all
@@ -61,7 +61,8 @@ if CONFIG["WRAP_STL_INCLUDES"]:
6161
*outputs,
6262
script="make-stl-wrappers.py",
6363
entry_point="gen_wrappers",
64-
flags=[TOPOBJDIR + output_dir, stl_compiler, template_file] + stl_headers
64+
inputs=[template_file],
65+
flags=[TOPOBJDIR + output_dir, stl_compiler] + stl_headers
6566
)
6667

6768
# Wrap <windows.h> to make it easier to use correctly

0 commit comments

Comments
 (0)