Newer
Older
dub_jkp / test / removed-dub-obj.sh
@foerdi foerdi on 6 Dec 2020 352 bytes Improved ldc cross compile:
  1. #!/usr/bin/env bash
  2.  
  3. . $(dirname "${BASH_SOURCE[0]}")/common.sh
  4. cd ${CURR_DIR}/removed-dub-obj
  5. rm -rf .dub
  6.  
  7. ${DUB} build --compiler=${DC}
  8.  
  9. [ -d ".dub/obj" ] && die $LINENO '.dub/obj was found'
  10.  
  11. if [[ ${DC} == *"ldc"* ]]; then
  12. [ -f .dub/build/library-*ldc*/obj/test.o* ] || die $LINENO '.dub/build/library-*ldc*/obj/test.o* was not found'
  13. fi
  14.  
  15. exit 0