← All tasks
cppapache/fory #3693Not a task: not reproduced

[C++] Requires a specific flag to work correctly with MSVC on Windows

envgap__apache__fory-3693

01 / FAILURE SIGNATURE

As reported upstream

No identifying execution failure has been captured.
Not a benchmark task.
  • In a clean container the reported failure did not reproduce, or the known fix did not make the project run.

02 / ENVIRONMENT RECIPE

Base commit
1daa1d02423fcbf1d2d3a81de79d2d8a1b26e6e5
Manifest
cpp/fory/meta/CMakeLists.txt
Reproduce
Awaiting issue-specific recipe
Run under trace
Awaiting a meaningful runtime command

03 / ORIGINAL ISSUE TEXT

apache/fory #3693 · read the original issue
### Search before asking

- [x] I had searched in the [issues](https://github.com/apache/fory/issues) and found no similar issues.


### Version

commit `1daa1d0`

### Component(s)

C++

### Minimal reproduce step

Just use `msvc` to run example.

### What did you expect to see?

Fix it or mention it in the README at least...?

### What did you see instead?

`FORY_STRUCT` macro cannot be expend to correct code without `/Zc:preprocessor>` flag.

### Anything Else?

`FORY_STRUCT` macro requires `/Zc:preprocessor` flag to work correctly with MSVC on Windows. Is this a feature? If so, would it be better to mention it in the README?

### Are you willing to submit a PR?

- [ ] I'm willing to submit a PR!
Continue on GitHub ↗

04 / LABELS

Labels from the report text only; not yet run

No supported category has been assigned.

Label rules and the text that matched
[]