forked from enlightenment/edi
Fix build on OSX with clang but no bear
This commit is contained in:
parent
251ea96020
commit
2e69a791b7
|
@ -30,15 +30,15 @@ cc = meson.get_compiler('c')
|
||||||
|
|
||||||
config_h.set_quoted('EFL_CFLAGS', run_command(find_program('pkg-config'), '--libs', '--cflags', 'elementary').stdout().strip())
|
config_h.set_quoted('EFL_CFLAGS', run_command(find_program('pkg-config'), '--libs', '--cflags', 'elementary').stdout().strip())
|
||||||
|
|
||||||
if get_option('bear') == true
|
bear = find_program('bear', required : false)
|
||||||
bear = find_program('bear')
|
if get_option('bear') == true and bear.found()
|
||||||
config_h.set_quoted('BEAR_COMMAND', 'bear')
|
config_h.set_quoted('BEAR_COMMAND', 'bear')
|
||||||
else
|
else
|
||||||
config_h.set_quoted('BEAR_COMMAND', '')
|
config_h.set_quoted('BEAR_COMMAND', '')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if get_option('libclang') == true
|
if get_option('libclang') == true
|
||||||
clang = cc.find_library('clang')
|
clang = cc.find_library('clang', dirs : ['/Library/Developer/CommandLineTools/usr/lib/'])
|
||||||
|
|
||||||
clang_include_dir_command = run_command(find_program('scripts/clang_include_dir.sh'))
|
clang_include_dir_command = run_command(find_program('scripts/clang_include_dir.sh'))
|
||||||
clang_include_dir = clang_include_dir_command.stdout().strip()
|
clang_include_dir = clang_include_dir_command.stdout().strip()
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
clang -E - -v < /dev/null 2>&1 | grep "^ /usr" | grep clang
|
clang -E - -v < /dev/null 2>&1 | grep "^ /" | grep clang
|
||||||
|
|
Loading…
Reference in New Issue