Hi,

I created a tinycc binding for the S-Lang programming language,

https://github.com/agathoklisx/slang-devel/tree/master/slang-modules/tcc

and while I was trying to create an executable, I had to use:

  tcc_set_options (tcc_handler, "-xn");

which sets tcc_handler->filetype to AFF_TYPE_NONE,
otherwise (the path) elf_output_file() -> tcc_add_runtime()
tries to compile /usr/local/lib/tcc/libtcc1.a when it calls

  tcc_add_support(s1, TCC_LIBTCC1);

I was wondering if there is a better librar"iezed" way.

Best
  Αγαθοκλής

p.s.,
(note that my C Fu is at a novice level, so be kind for any error :))

_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to