Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Should executables also generate a library? #21

Open
jordwalke opened this issue Apr 26, 2019 · 0 comments
Open

Should executables also generate a library? #21

jordwalke opened this issue Apr 26, 2019 · 0 comments
Labels
design needed enhancement New feature or request

Comments

@jordwalke
Copy link
Member

jordwalke commented Apr 26, 2019

This came up in our adding of rely tests. For rely tests to work well, you want a library (with -link-all flags set), and then an executable entrypoint that requires that library.

What would be the harm in each executable also generating a library?

Instead of specifying the .re file, to make the binary entrypoint you could specify the library name.

  "buildDirs": {
    "thing": {
      "namespace": "Thing",
      "flags": ["-link-all"],
      "require": [ "bos.top" ],
      "bin": {
        "MyApp.exe": "my-package.thing"
      }
    },

With node, each library is an executable and it might be cool to also have a similar capability by default with pesy.

(Note that for Rely tests, we do need different flags for the library than for the executable, so we'd need some way to specify flags only for the exe or only for the library).

@ManasJayanth ManasJayanth added the enhancement New feature or request label Apr 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
design needed enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants