On Mon, Mar 26, 2018 at 11:12 AM, <todd.wong....@gmail.com> wrote: > gn gen out/release --args='is_debug=false is_official_build=true > v8_static_library=true' > > ninja -C out/release > > This will generate the static libraries. But when I try to link with it, it > says: > > /path/to/libv8_base.a: error adding symbols: File format not recognized > > if I objdump this libv8_base.a file, a lot of "objdump: xxxxx.o: File format > not recognized" are gotten. > and if I "file xxxx.o", it output "xxxx.o: LLVM IR bitcode" > > Please help!
It sounds like you need to use llvm-ar rather than the ar(1) from GNU binutils. Preempting the question of how to do that with ninja: I don't know. Fix your PATH or hack the `ar = ...` rule in build.ninja? -- -- v8-users mailing list v8-users@googlegroups.com http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to v8-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.