apple / foundationdb

FoundationDB - the open source, distributed, transactional key-value store

Home Page:https://apple.github.io/foundationdb/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

actorcompiler should run after c++ preprocessor during the build process

xis19 opened this issue · comments

It is hard, if not impossible, to create a state variable via macro expansion since macros are expanded after actorcompiler.

This would require actorcompiler understands macros, which is not the case now. The current compilation steps are: 1) run actorcompiler to transpile .actor.* to .actor.g.*, and 2) gcc/clang compiles .actor.g.*.