|
|
|
|
|
|
|
|
|
|
|
|
|
|
TEST_CASE("Generating toolchain commands") { |
|
|
TEST_CASE("Generating toolchain commands") { |
|
|
check_tc_compile("{compiler_id: 'gnu'}", |
|
|
check_tc_compile("{compiler_id: 'gnu'}", |
|
|
"g++ -fPIC -pthread -MD -MF foo.o.d -MT foo.o -c foo.cpp -ofoo.o", |
|
|
|
|
|
|
|
|
"g++ -fPIC -pthread -MD -MF foo.o.d -MQ foo.o -c foo.cpp -ofoo.o", |
|
|
"g++ -fPIC -pthread -Wall -Wextra -Wpedantic -Wconversion " |
|
|
"g++ -fPIC -pthread -Wall -Wextra -Wpedantic -Wconversion " |
|
|
"-MD -MF foo.o.d -MT foo.o -c foo.cpp -ofoo.o", |
|
|
|
|
|
|
|
|
"-MD -MF foo.o.d -MQ foo.o -c foo.cpp -ofoo.o", |
|
|
"ar rcs stuff.a foo.o bar.o", |
|
|
"ar rcs stuff.a foo.o bar.o", |
|
|
"g++ -fPIC foo.o bar.a -pthread -omeow.exe"); |
|
|
"g++ -fPIC foo.o bar.a -pthread -omeow.exe"); |
|
|
|
|
|
|
|
|
check_tc_compile("{compiler_id: 'gnu', debug: true}", |
|
|
check_tc_compile("{compiler_id: 'gnu', debug: true}", |
|
|
"g++ -g -fPIC -pthread -MD -MF foo.o.d -MT foo.o -c foo.cpp -ofoo.o", |
|
|
|
|
|
|
|
|
"g++ -g -fPIC -pthread -MD -MF foo.o.d -MQ foo.o -c foo.cpp -ofoo.o", |
|
|
"g++ -g -fPIC -pthread -Wall -Wextra -Wpedantic -Wconversion " |
|
|
"g++ -g -fPIC -pthread -Wall -Wextra -Wpedantic -Wconversion " |
|
|
"-MD -MF foo.o.d -MT foo.o -c foo.cpp -ofoo.o", |
|
|
|
|
|
|
|
|
"-MD -MF foo.o.d -MQ foo.o -c foo.cpp -ofoo.o", |
|
|
"ar rcs stuff.a foo.o bar.o", |
|
|
"ar rcs stuff.a foo.o bar.o", |
|
|
"g++ -fPIC foo.o bar.a -pthread -omeow.exe -g"); |
|
|
"g++ -fPIC foo.o bar.a -pthread -omeow.exe -g"); |
|
|
|
|
|
|
|
|
check_tc_compile("{compiler_id: 'gnu', debug: true, optimize: true}", |
|
|
check_tc_compile("{compiler_id: 'gnu', debug: true, optimize: true}", |
|
|
"g++ -O2 -g -fPIC -pthread -MD -MF foo.o.d -MT foo.o -c foo.cpp " |
|
|
|
|
|
|
|
|
"g++ -O2 -g -fPIC -pthread -MD -MF foo.o.d -MQ foo.o -c foo.cpp " |
|
|
"-ofoo.o", |
|
|
"-ofoo.o", |
|
|
"g++ -O2 -g -fPIC -pthread -Wall -Wextra -Wpedantic -Wconversion " |
|
|
"g++ -O2 -g -fPIC -pthread -Wall -Wextra -Wpedantic -Wconversion " |
|
|
"-MD -MF foo.o.d -MT foo.o -c foo.cpp -ofoo.o", |
|
|
|
|
|
|
|
|
"-MD -MF foo.o.d -MQ foo.o -c foo.cpp -ofoo.o", |
|
|
"ar rcs stuff.a foo.o bar.o", |
|
|
"ar rcs stuff.a foo.o bar.o", |
|
|
"g++ -fPIC foo.o bar.a -pthread -omeow.exe -O2 -g"); |
|
|
"g++ -fPIC foo.o bar.a -pthread -omeow.exe -O2 -g"); |
|
|
|
|
|
|
|
|
check_tc_compile( |
|
|
check_tc_compile( |
|
|
"{compiler_id: 'gnu', debug: 'split', optimize: true}", |
|
|
"{compiler_id: 'gnu', debug: 'split', optimize: true}", |
|
|
"g++ -O2 -g -gsplit-dwarf -fPIC -pthread -MD -MF foo.o.d -MT foo.o -c foo.cpp -ofoo.o", |
|
|
|
|
|
|
|
|
"g++ -O2 -g -gsplit-dwarf -fPIC -pthread -MD -MF foo.o.d -MQ foo.o -c foo.cpp -ofoo.o", |
|
|
"g++ -O2 -g -gsplit-dwarf -fPIC -pthread -Wall -Wextra -Wpedantic -Wconversion -MD -MF " |
|
|
"g++ -O2 -g -gsplit-dwarf -fPIC -pthread -Wall -Wextra -Wpedantic -Wconversion -MD -MF " |
|
|
"foo.o.d -MT foo.o -c foo.cpp -ofoo.o", |
|
|
|
|
|
|
|
|
"foo.o.d -MQ foo.o -c foo.cpp -ofoo.o", |
|
|
"ar rcs stuff.a foo.o bar.o", |
|
|
"ar rcs stuff.a foo.o bar.o", |
|
|
"g++ -fPIC foo.o bar.a -pthread -omeow.exe -O2 -g -gsplit-dwarf"); |
|
|
"g++ -fPIC foo.o bar.a -pthread -omeow.exe -O2 -g -gsplit-dwarf"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
"-MD", |
|
|
"-MD", |
|
|
"-MF", |
|
|
"-MF", |
|
|
"foo.o.d", |
|
|
"foo.o.d", |
|
|
"-MT", |
|
|
|
|
|
|
|
|
"-MQ", |
|
|
"foo.o", |
|
|
"foo.o", |
|
|
"-c", |
|
|
"-c", |
|
|
"foo.cpp", |
|
|
"foo.cpp", |
|
|
|
|
|
|
|
|
"-MD", |
|
|
"-MD", |
|
|
"-MF", |
|
|
"-MF", |
|
|
"foo.o.d", |
|
|
"foo.o.d", |
|
|
"-MT", |
|
|
|
|
|
|
|
|
"-MQ", |
|
|
"foo.o", |
|
|
"foo.o", |
|
|
"-c", |
|
|
"-c", |
|
|
"foo.cpp", |
|
|
"foo.cpp", |
|
|
|
|
|
|
|
|
"-MD", |
|
|
"-MD", |
|
|
"-MF", |
|
|
"-MF", |
|
|
"foo.o.d", |
|
|
"foo.o.d", |
|
|
"-MT", |
|
|
|
|
|
|
|
|
"-MQ", |
|
|
"foo.o", |
|
|
"foo.o", |
|
|
"-c", |
|
|
"-c", |
|
|
"foo.cpp", |
|
|
"foo.cpp", |