Fix Windows build #246
|
@ -35,7 +35,7 @@ jobs:
|
||||||
# the code assumes msvc style printf atm
|
# the code assumes msvc style printf atm
|
||||||
export CFLAGS=-D__USE_MINGW_ANSI_STDIO=0
|
export CFLAGS=-D__USE_MINGW_ANSI_STDIO=0
|
||||||
|
|
||||||
meson -Dtests=false _build
|
meson _build
|
||||||
meson compile -C _build
|
meson compile -C _build
|
||||||
|
|
||||||
debian-meson:
|
debian-meson:
|
||||||
|
|
|
@ -19,5 +19,5 @@ tests = [
|
||||||
# yuck
|
# yuck
|
||||||
foreach test : tests
|
foreach test : tests
|
||||||
test_file = configure_file(input: test + '.sh', output: test, copy: true)
|
test_file = configure_file(input: test + '.sh', output: test, copy: true)
|
||||||
|
|||||||
run_command('chmod', '755', test_file, check : true)
|
run_command(find_program('chmod', required : false, disabler : true), '755', test_file, check : true)
|
||||||
dcbaker
commented
Outdated
Review
that's the wrong fix, that will break building on msys, which reports windows but very much has chmod something like:
Is a more robust solution. that's the wrong fix, that will break building on msys, which reports windows but very much has chmod
something like:
```meson
run_command(find_program('chmod', required : false, disabler : true), '755', test_file, check : true)
```
Is a more robust solution.
|
|||||||
endforeach
|
endforeach
|
||||||
|
|
Loading…
Reference in New Issue
curious- the configure_file here can take a
install_mode: 'rwxr-xr-x'
argument, perhaps that works on windows too?install_mode
is set at install time bymeson install
. I'm going to add abuild_mode
to thefs.copyfile()
function, which is the replacement forconfigure_file(copy : true)
(its a lot of historical baggage thatconfigure_file()
is used to copy files.As promised: https://github.com/mesonbuild/meson/pull/10744
aha, thanks for the information! that looks much better once that lands in