freetype: support compiling with stage2 (-fno-stage1) #388
No reviewers
Labels
No labels
CI
all
basisu
blog
bug
build
contributor-friendly
core
correctness
deferred
dev
direct3d-headers
docs
driver-os-issue
duplicate
dxcompiler
editor
examples
experiment
feature-idea
feedback
flac
freetype
gamemode
gkurve
glfw
gpu
gpu-dawn
harfbuzz
help welcome
in-progress
infrastructure
invalid
libmach
linux-audio-headers
long-term
mach
mach.gfx
mach.math
mach.physics
mach.testing
model3d
needs-triage
object
opengl-headers
opus
os/linux
os/macos
os/wasm
os/windows
package-manager
priority
proposal
proposal-accepted
question
roadmap
slipped
stability
sysaudio
sysgpu
sysjs
validating-fix
vulkan-zig-generated
wayland-headers
website
wontfix
wrench
www
x11-headers
xcode-frameworks
zig-update
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
hexops/mach!388
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "main"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Two things I wanted to notice are, utils_pkg (see https://github.com/hexops/mach/issues/180#issuecomment-1175993008) and test_option,
@embedFilecan't import from../so we need to useaddOptionin the build file. Also we can't@embedFilein build.zig because when running build.zig for the first time upstream/ hasn't been downloaded yet.@ -67,11 +67,16 @@ pub fn build(b: *std.build.Builder) !void {main_tests.setBuildMode(mode);You can just set
exe.main_pkg_pathwhich will solve the @embedFile issue@ -67,11 +67,16 @@ pub fn build(b: *std.build.Builder) !void {main_tests.setBuildMode(mode);So I add
main_tests.main_pkg_path = "upstream/assets/";in build.zig and use@embedFile("FiraSans-Regular.ttf")?It doesn't work so I don't think that's what you meant
@ -67,11 +67,16 @@ pub fn build(b: *std.build.Builder) !void {main_tests.setBuildMode(mode);I meant setting
main_pkg_pathto thisDir() and then @embedFile("../upstream...")@ -67,11 +67,16 @@ pub fn build(b: *std.build.Builder) !void {main_tests.setBuildMode(mode);Ah yeah, that was it thanks