Skip to content

Commit

Permalink
Add wchar_t option to builds.
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 3c6684c commit 76833c6
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,19 @@
testing_updated_builds.append([settings, options, env_vars, build_requires])
builder.builds = testing_updated_builds

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):
wchar_options = dict(options)
wchar_options.update({'NAME_OF_THIS_PACKAGE_DONT_LEAVE_UNMODIFIED: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_updated_builds.append([settings, wchar_options, env_vars, build_requires])
else:
wchar_updated_builds.append([settings, options, env_vars, build_requires])
builder.builds = wchar_updated_builds

builder.run()

0 comments on commit 76833c6

Please sign in to comment.