configure 326 B

123456789101112
  1. #!/bin/bash
  2. BUILD_DIR=$1
  3. if [ "" = "$BUILD_DIR" ]; then
  4. BUILD_DIR='./build'
  5. fi
  6. mkdir -p $BUILD_DIR
  7. python3 -c 'import tensorflow as tf; print(" ".join(tf.sysconfig.get_compile_flags()))' > $BUILD_DIR/TF_CFLAGS
  8. python3 -c 'import tensorflow as tf; print(" ".join(tf.sysconfig.get_link_flags()))' > $BUILD_DIR/TF_LFLAGS