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
Design in #196 is not good, let's use clang native design(without space) c2go transpile -o=file.go "-I/path/to/include file.c"
Solution
If user transpile many C file without specific clang flag, then design: c2go transpile file1.c file2.c file3.c
If user transpile many C file with specific clang flag, then design: c2go transpile "-CLANG_FLAG file1.c file2.c file3.c" (Added " around file list)
Note:
In according to discussion Add support of 2 or more C source files. Fixes #63 #258 : if user not specify name of output file, then we can take at the base - first filename. For example : In case: "-CLANG_FLAG file1.c file2.c file3.c", First input file file1.c, so output will be file1.go.
The text was updated successfully, but these errors were encountered:
Add
clang
flag for solve next.Prototype:
Transpile both sqlite3 files in according https://sqlite.org/howtocompile.html
c2go transpile -o=sqlite3.go "-DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION shell.c sqlite3.c"
Trigraph sequences #303
c2go transpile -o=file.go "-trigraphs file.c"
Allow passing include directory to clang #196
Design in #196 is not good, let's use clang native design(without space)
c2go transpile -o=file.go "-I/path/to/include file.c"
Solution
If user transpile many C file without specific
clang
flag, then design:c2go transpile file1.c file2.c file3.c
If user transpile many C file with specific
clang
flag, then design:c2go transpile "-CLANG_FLAG file1.c file2.c file3.c"
(Added"
around file list)Note:
"-CLANG_FLAG file1.c file2.c file3.c"
, First input filefile1.c
, so output will befile1.go
.The text was updated successfully, but these errors were encountered: