You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
CMAKE_AR in cmake toolchain file doesn't work #2288
The question being whether one needs to use the CACHE parameter when setting that variable. After making that change to the Emscripten.cmake file, try deleting the CMakeCache.txt and CMakeFiles directory or make a new clean CMake configure step just to be sure.
I tried the line I posted first and I can see CMAKE_AR being set to the right value. I didn't try what you suggested because it seems to be the same to me except that you forgot to remove a bracket before CACHE.
I cannot fully test this though because I have several other issues with the cmake build. It seems like the logic to force response files isn't working for me and I get errors when linking a static library because the command line gets too long. So I'm starting to find out what's wrong. This issue is just the first thing I noticed.
Activity
juj commentedon Apr 14, 2014
Does it work if you replace this line https://github.com/kripken/emscripten/blob/master/cmake/Platform/Emscripten.cmake#L69 with the following?
set(CMAKE_AR "${EMSCRIPTEN_ROOT_PATH}/emar${EMCC_SUFFIX}") CACHE FILEPATH "Emscripten Archiver")The question being whether one needs to use the CACHE parameter when setting that variable. After making that change to the Emscripten.cmake file, try deleting the CMakeCache.txt and CMakeFiles directory or make a new clean CMake configure step just to be sure.
mhenschel commentedon Apr 14, 2014
I tried the line I posted first and I can see CMAKE_AR being set to the right value. I didn't try what you suggested because it seems to be the same to me except that you forgot to remove a bracket before CACHE.
I cannot fully test this though because I have several other issues with the cmake build. It seems like the logic to force response files isn't working for me and I get errors when linking a static library because the command line gets too long. So I'm starting to find out what's wrong. This issue is just the first thing I noticed.
mhenschel commentedon Apr 14, 2014
I got the cmake build running and I can confirm that making CMAKE_AR a CACHE variable works as it should.
Store CMAKE_AR and CMAKE_RANLIB in CMake CACHE so that the values per…