Skip to content

Commit

Permalink
Fix name of option.
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Christiansen authored and wdolinar committed Jan 28, 2022
1 parent 76833c6 commit 7ca6c76
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,13 @@
wchar_updated_builds = []
for settings, options, env_vars, build_requires, reference in builder.items:
# wchar_t option
if settings['compiler'] == 'Visual Studio' and not options.get('NAME_OF_THIS_PACKAGE_DONT_LEAVE_UNMODIFIED:pybind', False):
if settings['compiler'] == 'Visual Studio' and not options.get('xmsstamper:pybind', False):
wchar_options = dict(options)
wchar_options.update({'NAME_OF_THIS_PACKAGE_DONT_LEAVE_UNMODIFIED:wchar_t': 'typedef'})
wchar_options.update({'xmsstamper:wchar_t': 'typedef'})
wchar_updated_builds.append([settings, wchar_options, env_vars, build_requires])
elif settings['compiler'] == 'Visual Studio':
wchar_options = dict(options)
wchar_options.update({'NAME_OF_THIS_PACKAGE_DONT_LEAVE_UNMODIFIED:wchar_t': 'builtin'})
wchar_options.update({'xmsstamper:wchar_t': 'builtin'})
wchar_updated_builds.append([settings, wchar_options, env_vars, build_requires])
else:
wchar_updated_builds.append([settings, options, env_vars, build_requires])
Expand Down

0 comments on commit 7ca6c76

Please sign in to comment.