Skip to content

Commit

Permalink
config/functions: add C++ compiler and linker flags to meson.conf
Browse files Browse the repository at this point in the history
Due to missing cpp_args and cpp_link_args in meson.conf ninja builds
of projects with C++ code were performed without CPU optimization
flags (-march, -mcpu, -mtune etc). Add these args so C++ code is
built with proper flags.

Signed-off-by: Matthias Reichl <[email protected]>
  • Loading branch information
HiassofT committed Apr 29, 2019
1 parent c95b0a2 commit 24e31c0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/functions
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,8 @@ endian = '$endian'
root = '$root'
$(python -c "import os; print('c_args = {}'.format([x for x in os.getenv('CFLAGS').split()]))")
$(python -c "import os; print('c_link_args = {}'.format([x for x in os.getenv('LDFLAGS').split()]))")
$(python -c "import os; print('cpp_args = {}'.format([x for x in os.getenv('CXXFLAGS').split()]))")
$(python -c "import os; print('cpp_link_args = {}'.format([x for x in os.getenv('LDFLAGS').split()]))")
${!properties}
EOF
}
Expand Down

0 comments on commit 24e31c0

Please sign in to comment.