mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2024-11-27 21:58:29 +08:00
14 lines
359 B
Bash
Executable File
14 lines
359 B
Bash
Executable File
#!/bin/bash
|
|
cd "$(dirname "$0")"
|
|
cd ..
|
|
mapping_dir=$(pwd)
|
|
mkdir -p iwyu
|
|
cd iwyu
|
|
rm * -rf
|
|
echo $CMAKE_CXX_INCLUDE_WHAT_YOU_USE
|
|
cmake .. -DFTXUI_BUILD_TESTS=ON -DCMAKE_CXX_INCLUDE_WHAT_YOU_USE="include-what-you-use;-Xiwyu;--cxx17ns;-Xiwyu;--mapping_file=${mapping_dir}/iwyu.imp;-Xiwyu;--verbose=3"
|
|
make -j 2>out
|
|
fix_include --comments < out
|
|
|
|
../tools/format.sh
|