diff --git a/embedtool.cpp b/embedtool.cpp index 7ee9dc41..caa08df8 100644 --- a/embedtool.cpp +++ b/embedtool.cpp @@ -31,12 +31,12 @@ int main(int argc, char **argv) { const char *output = argv[2]; const char *arrayname = argv[3]; - std::ifstream inputf(input); + std::ifstream inputf(input, std::ios::binary); if (!inputf.is_open()) { return 2; } - std::ofstream outputf(output); + std::ofstream outputf(output, std::ios::binary); if (!outputf.is_open()) { return 3; } diff --git a/meson.build b/meson.build index d77ea755..67c86f55 100644 --- a/meson.build +++ b/meson.build @@ -112,7 +112,7 @@ global_args += '-DMKXPZ_INIT_GL_LATER' subdir('src') -embedtool = executable('embedtool', sources: 'embedtool.cpp', native: true, override_options: []) +embedtool = executable('embedtool', sources: 'embedtool.cpp', native: true, override_options: ['buildtype=release', 'b_coverage=false', 'b_lto=false', 'b_ndebug=false', 'b_pgo=off', 'b_sanitize=none']) subdir('binding') subdir('shader')