Skip to content

Commit 448862f

Browse files
committed
echo build options
1 parent 2dcb63b commit 448862f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test_resources/library/build-test-op

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@
22

33
TF_CFLAGS=( $(python -c 'import tensorflow as tf; print(" ".join(tf.sysconfig.get_compile_flags()))') )
44
TF_LFLAGS=( $(python -c 'import tensorflow as tf; print(" ".join(tf.sysconfig.get_link_flags()))') )
5-
g++ -std=c++14 -shared test_op.cc -o test_op.so -fPIC ${TF_CFLAGS[@]} ${TF_LFLAGS[@]} -O2
5+
cmd="g++ -std=c++14 -shared test_op.cc -o test_op.so -fPIC ${TF_CFLAGS[@]} ${TF_LFLAGS[@]} -O2"
6+
echo $cmd
7+
$cmd

0 commit comments

Comments
 (0)