Commit abc72336 authored by Xavier Claessens's avatar Xavier Claessens

meson: Fix build failure when compiler is not in PATH

When cross compiling gcc/clang could not exist in PATH and Meson could
be using aarch64-linux-android-clang set in a cross file for example.
parent 73353b33
Pipeline #216265 passed with stage
in 7 minutes and 54 seconds
......@@ -31,12 +31,13 @@ fc_sources = [
# FIXME: obviously fragile, cc.preprocess would be sweet
cpp = cc.cmd_array()
if cc.get_id() == 'gcc'
cpp = ['gcc', '-E', '-P']
cpp += ['-E', '-P']
elif cc.get_id() == 'msvc'
cpp = ['cl', '/EP']
cpp += ['/EP']
elif cc.get_id() == 'clang'
cpp = ['clang', '-E', '-P']
cpp += ['-E', '-P']
error('FIXME: implement cc.preprocess')
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment