You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

22 lines
337 B

  1. #!/bin/bash -e
  2. cflags=CFLAGS="$CFLAGS"
  3. cxxflags=CXXFLAGS="$CXXFLAGS"
  4. declare -a args
  5. j=0
  6. for i in "$@"; do
  7. case "$i" in
  8. CFLAGS=*)
  9. cflags="$i";;
  10. CXXFLAGS=*)
  11. cxxflags="$i";;
  12. *)
  13. args[$j]="$i"
  14. j=$((j+1))
  15. esac
  16. done
  17. export "$cflags" "$cxxflags"
  18. set -x
  19. exec meson build "${args[@]}"