Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Unable to build ceres-solver for iOS with c/c++ flag `-fembed-bitcode` #282
Comments
|
The As it seems from the Clang/LLVM code that -mllvm and -fembed-bitcode are incompatible options, I don't think that there is a workaround here other than removing the |
|
@alexsmac it maybe worth looking at the -inline-threshold again. Its been a while since we evaluated the need for it. |
|
A quick informal test on my laptop does not indicate that this is particularly useful. |
|
So this seems to be the CL that added this so I need to check as to what happens to the performance of ITERATIVE_SCHUR with and without this. |
|
I think it was something @keir added to improve Jet performance, without it I think autodiff cost functions were being clobbered when evaluating Jets with larger parameter sizes. |
|
Turns out this has to do with the Schur based solvers rather than Jets. And there is a performance differential, but I need to spend some time to see if we can do this via compiler annotations instead of compiler flags. |
AndreasSchacherbauer commentedMay 9, 2017
•
edited
Hi,
I tried to build ceres for iOS with the bitcode option enabled but I got the following error:
clang: error: -mllvm is not supported with -fembed-bitcode.I had to remove the
-mllvmcxx flag in the main CMakeLists.txt file and was then able to specify-fembed-bitcodein the iOS.cmake toolchain file line 250-255.For what is the
-mllvmoption needed or is there another way to resolve my bitcode build error?