Skip to content

Commit 33d273c

Browse files
aporialiaofacebook-github-bot
authored andcommitted
Allow undefined libraries to fix CMake errors (#2849)
Summary: This should get rid of the `libtorch_cpu.so: undefined reference to `logf@GLIBC_2.27'` etc.. we see in our cpp unit tests on Github CI See: https://fb.workplace.com/groups/1405155842844877/permalink/23944202491846891/ Note there is another error of undefined reference with specific benchmark library - this will need a different fix. coming in next diff Differential Revision: D71862824
1 parent 7652c5d commit 33d273c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/cpp_unittest_ci_cpu.yml

+1
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ jobs:
5858
conda run -n build_binary cmake \
5959
-DBUILD_TEST=ON \
6060
-DBUILD_REDIS_IO=ON \
61+
-DCMAKE_EXE_LINKER_FLAGS=-Wl,--allow-shlib-undefined \
6162
-DCMAKE_PREFIX_PATH=/opt/conda/envs/build_binary/lib/python${{ matrix.python-version }}/site-packages/torch/share/cmake ..
6263
conda run -n build_binary make -j
6364
conda run -n build_binary ctest -V .

0 commit comments

Comments
 (0)