aboutsummaryrefslogtreecommitdiffstats
path: root/configure.py
diff options
context:
space:
mode:
authorRenĂ© Meusel <[email protected]>2021-12-14 15:00:45 +0100
committerRenĂ© Meusel <[email protected]>2021-12-14 15:40:45 +0100
commitecb4167446965d654cd748e2c54493a02c9470e7 (patch)
treec687a6d0f004f32155617b3d9c446e01ee91048c /configure.py
parentb897fc6f65acc512beae1409833023171f03ed73 (diff)
preload test data for emscripten test binary
Co-Authored-By: Hannes Rantzsch <[email protected]>
Diffstat (limited to 'configure.py')
-rwxr-xr-xconfigure.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.py b/configure.py
index 5baf0a69e..5c9ca4e46 100755
--- a/configure.py
+++ b/configure.py
@@ -2158,6 +2158,7 @@ def create_template_vars(source_paths, build_paths, options, modules, cc, arch,
'cc_sysroot': sysroot_option(),
'cc_compile_flags': options.cxxflags or cc.cc_compile_flags(options),
'ldflags': options.ldflags or '',
+ 'test_exe_extra_ldflags': '--preload-file=%s' % source_paths.test_data_dir if osinfo.matches_name("emscripten") else '',
'extra_libs': extra_libs(options.extra_libs, cc),
'cc_warning_flags': cc.cc_warning_flags(options),
'output_to_exe': cc.output_to_exe,