Skip to content

How to pass -fno-sanitize=undefined to zig cc? #223

@jiacai2050

Description

@jiacai2050

Since zig cc pass -fsanitize=undefined -fsanitize-trap=undefined by default, some project can be built successfully, but
will throw error when running

$ ./target/debug/foo
Illegal instruction

if let Ok(mut options) = Self::collect_zig_cc_options(&zig_wrapper, raw_target) {

After some research, it seems there is no way to pass zig cc options?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions