Files
pilotclient/scripts
Roland Winklmeier 49cd6a117f Add argument to specify the number of jobs
Using the python method 'cpu_count()' is not working everywhere.
In Linux containers, 'multiprocessing.cpu_count()' returns the number
of cpu's of the host machine, not the number assigned to the linux
container.
2017-09-24 19:50:50 +01:00
..
2016-05-13 17:02:46 +02:00
2016-05-13 17:02:46 +02:00
2016-05-13 17:02:46 +02:00

1. Create new swift mapping file
cd scripts && ./create_iwyu_mappings.py

2. Add global compiler argument to point iwyu to swift mapping file
QMAKE_CXXFLAGS += "-Xiwyu --mapping_file=/home/roland/projects/vatsim/swift/scripts/swift.imp"

3. Run make with compiler set to iwyu
make -j7 -k CXX=~/Downloads/include-what-you-use/bin/include-what-you-use > iwyu.log 2>&1

4. Fix includes
python ~/Downloads/include-what-you-use/bin/fix_includes.py --nocomments < iwyu.log