carbon-lang
carbon-lang copied to clipboard
Clean minor issues with mac build
On build:
clang++: warning: argument unused during compilation: '-pie' [-Wunused-command-line-argument]
Probably need to clean up flags, but wanted to check with @chandlerc because I thought we'd tried to address this.
On run:
explorer(26799,0x118034600) malloc: nano zone abandoned due to inability to preallocate reserved vm space.
https://stackoverflow.com/questions/64126942/malloc-nano-zone-abandoned-due-to-inability-to-preallocate-reserved-vm-space
- Undef NANO_PREALLOCATE_BAND_VM (only viable if you compile libmalloc from source)
- Set the environment variable MallocNanoZone to 0.
I think we need option 2
╚╡which clang++
/Users/jperkins/.brew/opt/llvm/bin/clang++
╚╡clang++ --version
Homebrew clang version 14.0.6
Target: x86_64-apple-darwin21.5.0
Thread model: posix
InstalledDir: /Users/jperkins/.brew/opt/llvm/bin
Note, -pie is fastbuild+opt, nano I think may be fastbuild only (possibly because it's related to sanitizers)
We triage inactive PRs and issues in order to make it easier to find active work. If this issue should remain active or becomes active again, please comment or remove the inactive label. The long term label can also be added for issues which are expected to take time.
This issue is labeled inactive because the last activity was over 90 days ago.