build.sh 425 B

12345678910111213141516171819
  1. cd ./test/
  2. rm -rf *
  3. echo "开始构建"
  4. g++ -O3 ../CRTP.cpp -o CRTP -std=c++20
  5. g++ -O3 ../builder.cpp -o builder -std=c++20
  6. g++ -O3 ../factory.cpp -o factory -std=c++20
  7. g++ -O3 ../signal.cpp -o signal -std=c++20
  8. g++ -O3 ../adapter.cpp -o adapter -std=c++20
  9. echo "开始运行"
  10. echo "--builder.cpp"
  11. ./builder
  12. echo "--CRTP.cpp"
  13. ./CRTP
  14. echo "--factory.cpp"
  15. ./factory
  16. echo "--signal.cpp"
  17. ./signal
  18. echo "--adapter.cpp"
  19. ./adapter