diff options
author | Junjie Bai <bai@in.tum.de> | 2018-07-30 14:54:01 -0700 |
---|---|---|
committer | Facebook Github Bot <facebook-github-bot@users.noreply.github.com> | 2018-07-30 15:01:13 -0700 |
commit | 57750bd638f2eacf724aae5c9e1d8d089c72b642 (patch) | |
tree | 8da2231492c584e0f55d1c1a7e28077d4d7fcfd9 /cmake | |
parent | 6c7fb1582f6d60f2b83b3380b8cb2f3520670b09 (diff) | |
download | pytorch-57750bd638f2eacf724aae5c9e1d8d089c72b642.tar.gz pytorch-57750bd638f2eacf724aae5c9e1d8d089c72b642.tar.bz2 pytorch-57750bd638f2eacf724aae5c9e1d8d089c72b642.zip |
Enable ATen in C2 in integration builds to test ONNX ATen conversions (#10014)
Summary:
zrphercule
Pull Request resolved: https://github.com/pytorch/pytorch/pull/10014
Reviewed By: houseroad
Differential Revision: D9061842
Pulled By: bddppq
fbshipit-source-id: 1e1c2aeae62dd2cc5c6a8d5e1d395ea5cf882734
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/MiscCheck.cmake | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/cmake/MiscCheck.cmake b/cmake/MiscCheck.cmake index 2a4e61f97b..b8ba4ecead 100644 --- a/cmake/MiscCheck.cmake +++ b/cmake/MiscCheck.cmake @@ -157,6 +157,15 @@ if (${COMPILER_SUPPORTS_HIDDEN_INLINE_VISIBILITY}) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CAFFE2_VISIBILITY_FLAG}") endif() +# ---[ Checks if linker supports -rdynamic. `-rdynamic` tells linker +# -to add all (including unused) symbols into the dynamic symbol +# -table. We need this to get symbols when generating backtrace at +# -runtime. +check_cxx_compiler_flag("-rdynamic" COMPILER_SUPPORTS_RDYNAMIC) +if (${COMPILER_SUPPORTS_RDYNAMIC}) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -rdynamic") +endif() + # ---[ If we are using msvc, set no warning flags # Note(jiayq): if you are going to add a warning flag, check if this is # totally necessary, and only add when you see fit. If it is needed due to |