Skip to content

inject macro definitions during compilation time#3165

Merged
eder-matheus merged 1 commit into
The-OpenROAD-Project:masterfrom
eder-matheus:update_dockerfile
May 15, 2025
Merged

inject macro definitions during compilation time#3165
eder-matheus merged 1 commit into
The-OpenROAD-Project:masterfrom
eder-matheus:update_dockerfile

Conversation

@eder-matheus

Copy link
Copy Markdown
Member

I've found this strategy to set the TIME, DATE and TIMESTAMP as constants without breaking Yosys build, and also without breaking the check for the C++14 support (the error that was happening with verilator).

I've tested it and I can see that what the C++ compiler sees is the constant "0", so I believe it will restore the behavior of having constant date/time in the binary.

Signed-off-by: Eder Monteiro <emrmonteiro@precisioninno.com>
@eder-matheus eder-matheus requested a review from maliberty May 14, 2025 20:37
@eder-matheus

Copy link
Copy Markdown
Member Author

@oharboe FYI.

@maliberty

Copy link
Copy Markdown
Member

Ugly but effective. I'd like to see if we can upstream a change to have an build option that avoids the need for such tricks

@eder-matheus eder-matheus merged commit 2a81f92 into The-OpenROAD-Project:master May 15, 2025
7 checks passed
@eder-matheus eder-matheus deleted the update_dockerfile branch May 15, 2025 14:03
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.

2 participants