Skip to content

refactor: consolidate references/cpp/src/ into single file#18

Open
aduh95 wants to merge 1 commit into
ShogunPanda:mainfrom
aduh95:install-checks
Open

refactor: consolidate references/cpp/src/ into single file#18
aduh95 wants to merge 1 commit into
ShogunPanda:mainfrom
aduh95:install-checks

Conversation

@aduh95

@aduh95 aduh95 commented Jun 13, 2026

Copy link
Copy Markdown

Merge output.{cc,h}, utils.{cc,h}, reference.cc, and readme.cc into a single main.cpp that can be compiled directly:

c++ $(PKG_CONFIG_PATH="$out/lib/pkgconfig" pkg-config --cflags --libs milo_parser) \
  references/cpp/src/main.cc -o cpp_test
./cpp_test

This is useful to test the installation in a sandbox without pulling lots of dependencies.

Merge output.{cc,h}, utils.{cc,h}, reference.cc, and readme.cc into a
single main.cpp that can be compiled directly:

  c++ $(PKG_CONFIG_PATH="$out/lib/pkgconfig" pkg-config --cflags --libs milo_parser) references/cpp/src/main.cc -o cpp_test && ./cpp_test

This is useful to test the installation in a sandbox without pulling
lots of dependencies.
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.

1 participant