File tree Expand file tree Collapse file tree 3 files changed +3
-6
lines changed
Expand file tree Collapse file tree 3 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -287,10 +287,8 @@ want_tests = get_option('tests')
287287slow_tests = want_tests != ' false' and get_option (' slow-tests' )
288288install_tests = get_option (' install-tests' )
289289
290- cxx = find_program (' c++' , required : fuzzer_build)
291- if cxx.found()
290+ if add_languages (' cpp' , required : fuzzer_build)
292291 # Used only for tests
293- add_languages (' cpp' )
294292 cxx_cmd = ' ' .join(meson .get_compiler(' cpp' ).cmd_array())
295293else
296294 cxx_cmd = ''
Original file line number Diff line number Diff line change @@ -52,8 +52,7 @@ if cc.has_argument('-std=iso9899:2017')
5252 opts += [[' c' , ' -std=iso9899:2017' ]]
5353endif
5454
55- cxx = find_program (' c++' , required : false )
56- if cxx.found()
55+ if add_languages (' cpp' , required : false )
5756 opts += [[' c++' ],
5857 [' c++' , ' -std=c++98' ],
5958 [' c++' , ' -std=c++11' ]]
Original file line number Diff line number Diff line change @@ -957,7 +957,7 @@ tests += [
957957
958958]
959959
960- if cxx.found()
960+ if cxx_cmd != ''
961961 tests += [
962962 [[' src/libsystemd/sd-bus/test-bus-vtable-cc.cc' ],
963963 [],
You can’t perform that action at this time.
0 commit comments