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

[SR-1573] A way to launch swift REPL with all swift modules in a package #5280

Closed
ankitspd opened this issue May 20, 2016 · 6 comments
Closed

Comments

@ankitspd
Copy link
Member

Previous ID SR-1573
Radar rdar://problem/44889181
Original Reporter @aciidb0mb3r
Type New Feature
Status Resolved
Resolution Done
Additional Detail from JIRA
Votes 3
Component/s Package Manager
Labels New Feature
Assignee None
Priority Medium

md5: 73a19b22b0ad0f3cafced2c8edd6900f

relates to:

  • SR-1191 Failed to use REPL with SPM built modules

Issue Description:

It'll be nice to be able to launch REPL with all the modules inside a package with a command like:

$ swift build --repl

One issue currently is that a module needs to have a dylib to be able run in REPL. Maybe we can generate dylibs for all the modules when user launches this mode?

Some reference here : https://bugs.swift.org/browse/SR-1191

@ddunbar
Copy link
Member

ddunbar commented May 20, 2016

This feature is useful enough that I would be ok if it did a little compiling just to make things work... although we could in theory also just switch to using DSOs more often. My goal is that the static/shared nature should be either "an implementation detail" (and we are allowed to do whatever is most convenient), or explicit (via the products facility, for example). So from my perspective I think we are "allowed" to build DSOs as part of the debug mode experience.

@ankitspd
Copy link
Member Author

Actually right now we don't create any product unless it is specified via `products`. We would just need to create the DSO from object files (if present)

@ddunbar
Copy link
Member

ddunbar commented Jun 6, 2016

See:
#393

@ddunbar
Copy link
Member

ddunbar commented Jun 6, 2016

bhargavg (JIRA User) I'm sending this to you since you appear to be working on it. 🙂

@ankitspd
Copy link
Member Author

@swift-ci create

@ankitspd
Copy link
Member Author

#1793

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 4, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants