How do I build library module? #25683
Unanswered
rrpolanco
asked this question in
Questions and Answers
Replies: 2 comments 14 replies
-
|
All modules are essentially libraries, as they are imported and used. Did you want to pre-compile your module and distribute it that way, instead of allowing access to the source? V doesn't support that mode of operation. You can get something close to it by compiling to |
Beta Was this translation helpful? Give feedback.
14 replies
-
|
build one .o for per module, avoid scan and build whole project used code. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm coming from
Gowhere I could just dogo buildon a module that doesn't havemain.My project has two files:
retry.v has the following module directive:
When I compile, the compiler says I need to build this as a native shared library:
I don't want to build a shared library (dylib in my case) I just want to compile the module so it can be imported by other V libraries and/or applications. Thanks.
Beta Was this translation helpful? Give feedback.
All reactions