Open zztkm opened 1 year ago
v を c ファイルに変換して、それを gcc や zig cc でビルドする
v -showcc . > C compiler cmd: '/home/zztkm/dev/github.com/vlang/v/thirdparty/tcc/tcc.exe' '@/tmp/v_1000/vss.13387230187203176341.tmp.c.rsp' > C compiler response file "/tmp/v_1000/vss.13387230187203176341.tmp.c.rsp": -std=gnu99 -D_DEFAULT_SOURCE "/home/zztkm/.vmodules/cache/b6/b6823904c3ddfb85d92222da0f7f78d2.module.markdown.o" "/home/zztkm/.vmodules/cache/91/9178a78304fb340f507ef8cb19d3ff24.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/53/53b26bc648671cc9f67fe2bf40914962.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/f6/f6bade34013e055fab7bd0e18911f3ce.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/0c/0c24713fe78095130ac188f820d8126f.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/8e/8e51e3f40b127a7b468c638c9d821084.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/d3/d30eafadcf79e65b084f040c903d0c7b.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/b3/b357ca1e9bbb6eba1d3ec3228671b356.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/e9/e99b9ded2773c281863deaeb97450a41.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/40/4049d81a13f7e4d33bb99df59484cb8e.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/63/632a27c56e72e44164704b05e5a3dd61.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/20/2097418ef9fa0c5c6097eff51e8bdca0.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/53/538b18114e0fd143d5410af9eecb37b8.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/d7/d7bda3ca6000556ee1c9e5f00ae0321b.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/48/485a44b08d2539842a43291b8db281b5.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/98/9803d51e831c6d9d3d09cf82de5caf41.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/01/01b25942a4d7f5383e963db98b543af1.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/8b/8b7d458b20ead5e3a21b520d6660f8ae.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/62/62aa80cbd1e020590d42d7c9f567ea7b.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/68/6824dd979252d5fdef3f89e973f6a2d4.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/ed/ed82a4d81f7f34ecbfa85666b37d67fa.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/31/3193dd4214c43eb0c5a28475ad54ab07.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/fd/fd46f4902924e71f504fb2b4f7eaa110.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/ec/ecc3ad550f89fee4de92292fb3bb21f6.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/be/be95934dcc2a0a44d66f2e4a3cacb88e.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/d6/d661bfeaf3df2e0a9c4e1dddfbd1396b.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/9e/9ecc75e6c93a36bcbda15fa142c6eaa0.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/7d/7d51c30da3524865c4da7c437dccec8d.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/97/9711d729a32c14c9b352b3a343a825a8.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/4a/4a402b36142e52c6bf53550fccedb76c.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/16/16b8721acd1e186ae8e6246fc9b1bd51.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/ac/acfbb0a4b58ff3f3b560c988351c1685.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/ef/efef8bf83857fc6447a876fde53249bb.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/62/625c1d32aeec3fe1810c0a5897b58d2d.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/b6/b6c262977296fafdd3584560522b0a71.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/f3/f34abdeb2f6e37e6d558068f0d0d3727.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/f7/f72675f022d23337903d71eed3ac5dc2.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/45/45199dea3b9d665aa58208bc2debfea2.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/a0/a0f3c85052097fe455e81692819a364a.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/1f/1faa4144da430684dbaef8ffc2ccff8e.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/13/1379cd35a93c9ea709acbbd042c134e5.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/a4/a4688f609f28e9f80eafa1361c01e461.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/bc/bcf4c0ef0cdc161a16c0ddc825caa5cc.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/9d/9da075e9409429eeec2f1391b18a5cf9.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/f5/f50ff4bebe3eebbb1ebeee5493339796.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/47/473505f61fd92838d09aa7cd17788081.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/ee/ee75133f48cc9a5667f1600881b7f048.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/74/74334828577953aa97264e4fdf6e80fb.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/94/944077976b0887e22d19f1a09d6f2563.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/f8/f8b5871a018dae228a5af1097f25cb77.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/c9/c92f641e32c05219d97bc83991a5dde3.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/79/792094d365360075d21a5a3f23d99f0e.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/ba/ba3f5aa96d113826bdc5fd138fff033f.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/31/31c98d1c5cd7a5cbd7a51e8b1e9948f3.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/87/872c64a15180c47235a28651e7000ea0.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/d2/d21681ebb53789caf9cd1f23eca0ce75.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/cb/cbf6d8f52c476b814349d510dfdd67d1.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/4a/4a52e86bbf07d9beecfbe4c9228b5034.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/ae/ae093ca1148b4110371415c063e52b82.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/13/132d8616f70b09d4ab6b58f75a76a895.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/e0/e0852b356e942845cca058fe7dfedd0a.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/15/1531024d99cd5422d2ebbe43641d0276.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/d8/d80ecba0a6f7d8424b28e4ea75fa1aea.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/ee/eed545eab9ed1557f90a3f900227546c.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/13/13d5ca25c7fac14f40428359a09b8f6c.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/ec/ec82b8f487c26ada87b25185f654b2ed.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/a4/a4fb3ff8860ae83877ae15e350e1ddb6.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/6a/6a734fd2239f9dc07898ca02d2b4acaa.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/28/287f52868353e3a785fd2d911db7a788.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/bb/bbdb30e6a4984fc7967280cae1413711.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/a7/a7fdd8aa655c51726a0a00727f9fda4a.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/d3/d39d2c6d3eac50556a1eb38d4307af91.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/e9/e98af0603c31639a85a24f84ff06c7f3.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/43/43e3da3fac439f5e6ce14c647b5c8566.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/55/551fb8ef5953ae847d3a3b93155dbefe.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/d2/d217df811a515fbfba9ec709a958ff10.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/b3/b3ad0aeaf3b51656420db301dd9a27ba.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/4f/4f7d99d1b87a5d863ceaba64173e54a0.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/ec/ec9ef95ce1aa1f5d763869944529c012.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/38/38a1c082b8692774bf682cd116ccc98b.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/f6/f688462f9a32553ae00f3f767a82a215.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/d5/d51d60762d1137b84b0d46956cc0bb62.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/4b/4b763fa5780d01ec59041b63a40b9c05.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/be/be49418eb3533107c592f88b40dc2741.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/9f/9f6cc500e16631873c4f2fb956716933.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/dc/dc6d3ba9aa0cb647e92762dfc6fcaf04.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/df/dfcd47b290579b82880b79c2b80c6bad.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/bb/bbbf609e4fbbd5eb9039bf44357a30b5.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/01/016e7212e92b60c35215687c90708410.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/e3/e3921bfcff66261fb09201a45a4a0766.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/da/daebf7109a75e59b0c387bacc7e527dd.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/32/320fc26ecb019154eef173df1a3a9823.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/8c/8ce4fddaa17fc0fd08d35d77a7960369.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/02/02e3cc21769e9718639c9de46adc13c3.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/37/37381609df5796d07aa860fd08f6f8d8.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/56/565a67c55c7c05032774d9b75b88df90.module.net.mbedtls.o" "/home/zztkm/.vmodules/cache/05/05507bab162d37a6c0fdf440356b9693.module.net.mbedtls.o" -o "/home/zztkm/dev/github.com/vssio/vss/vss" -D GC_BUILTIN_ATOMIC=1 -D GC_THREADS=1 -I "/home/zztkm/dev/github.com/vlang/v/thirdparty/libgc/include" -I "/home/zztkm/.vmodules/markdown/lib/md4c" -I "/home/zztkm/dev/github.com/vlang/v/thirdparty/stdatomic/nix" -L "/usr/lib/gcc/x86_64-linux-gnu/6" -L "/usr/lib/gcc/x86_64-linux-gnu/7" -L "/usr/lib/gcc/x86_64-linux-gnu/8" -L "/usr/lib/gcc/x86_64-linux-gnu/9" -L "/usr/lib/gcc/x86_64-linux-gnu/10" -L "/usr/lib/gcc/x86_64-linux-gnu/11" -L "/usr/lib/gcc/x86_64-linux-gnu/12" -L "/usr/lib/gcc/x86_64-redhat-linux/6" -L "/usr/lib/gcc/x86_64-redhat-linux/7" -L "/usr/lib/gcc/x86_64-redhat-linux/8" -L "/usr/lib/gcc/x86_64-redhat-linux/9" -L "/usr/lib/gcc/x86_64-redhat-linux/10" -L "/usr/lib/gcc/x86_64-redhat-linux/11" -L "/usr/lib/gcc/x86_64-redhat-linux/12" -I "/home/zztkm/dev/github.com/vlang/v/thirdparty/mbedtls/library" -I "/home/zztkm/dev/github.com/vlang/v/thirdparty/mbedtls/include" -I "/home/zztkm/dev/github.com/vlang/v/thirdparty/mbedtls/3rdparty/everest/include" -I "/home/zztkm/dev/github.com/vlang/v/thirdparty/mbedtls/3rdparty/everest/include/everest" -I "/home/zztkm/dev/github.com/vlang/v/thirdparty/mbedtls/3rdparty/everest/include/everest/kremlib" "/tmp/v_1000/vss.13387230187203176341.tmp.c" -bt25 "/home/zztkm/dev/github.com/vlang/v/thirdparty/tcc/lib/libgc.a" -ldl -lpthread -latomic
考えているアプローチ
v を c ファイルに変換して、それを gcc や zig cc でビルドする