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

Split intrinsic from std lib #3170

Merged
merged 18 commits into from
Apr 18, 2024

Conversation

timotheeguerin
Copy link
Member

@timotheeguerin timotheeguerin commented Apr 15, 2024

fix #3171
Currently the --nostdlib option is just useless, here splitting the intrinsic types from the rest of the std lib.

Intrinsic types will always be loaded regardless of what nostdlib says.

Being able to disable that can be useful in the compiler test to not be polluted by some extra elements.

@azure-sdk
Copy link
Collaborator

azure-sdk commented Apr 15, 2024

All changed packages have been documented.

  • @typespec/compiler
  • @typespec/playground
Show changes

@typespec/compiler - fix ✏️

--nostdlib flag will now work by only applying to optional standard library types

@typespec/playground - fix ✏️

Add support for new intrinsic vs std lib split in the compiler.

@azure-sdk
Copy link
Collaborator

You can try these changes at https://cadlplayground.z22.web.core.windows.net/prs/3170/

Check the website changes at https://tspwebsitepr.z22.web.core.windows.net/prs/3170/

@timotheeguerin timotheeguerin enabled auto-merge (squash) April 18, 2024 19:58
@timotheeguerin timotheeguerin merged commit fa540a9 into microsoft:main Apr 18, 2024
21 checks passed
@timotheeguerin timotheeguerin deleted the actual-std-lib branch April 18, 2024 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Using --nostdlib result in crash
4 participants