# flatten lib/std/special and improve "pkg inside another" logic · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/ec95e00e28cb23f37dc097f71afd7090e947a1cd)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: ec95e00e28cb23f37dc097f71afd7090e947a1cd

Requested commit: ec95e00e28cb23f37dc097f71afd7090e947a1cd

Commit: ec95e00e28cb23f37dc097f71afd7090e947a1cd

Tree: a7393f13c3d2c7895eb3687d0ebd7f3205699289

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
flatten lib/std/special and improve "pkg inside another" logic

stage2: change logic for detecting whether the main package is inside
the std package. Previously it relied on realpath() which is not portable.
This uses resolve() which is how imports already work.

 * stage2: fix cleanup bug when creating Module
 * flatten lib/std/special/* to lib/*
   - this was motivated by making main_pkg_is_inside_std false for
     compiler_rt & friends.
 * rename "mini libc" to "universal libc"

```

## Parents

- [3b60ab4872355f0b9a9c7d0794ca8b548ab99412](https://git.cafe/gitcafe/zig/commit/3b60ab4872355f0b9a9c7d0794ca8b548ab99412?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/ec95e00e28cb23f37dc097f71afd7090e947a1cd?format=markdown)
