We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
time_nix.c.v:6
1 parent 98abeb1 commit 1fb6fccCopy full SHA for 1fb6fcc
1 file changed
vlib/v/gen/native/stmt.c.v
@@ -411,6 +411,10 @@ fn (mut g Gen) gen_flag_hash_stmt(node ast.HashStmt) {
411
} else if node.main.contains('-L') {
412
g.linker_include_paths << node.main.all_after('-L').trim_space()
413
} else if node.main.contains('-D') || node.main.contains('-I') {
414
+ if g.pref.os == .linux && node.main.starts_with('darwin ') {
415
+ // TODO: skip all mismatching flags. Extract the logic from cgen in a common method on HashStmt, and call it both here and in cgen.
416
+ return
417
+ }
418
// g.v_error('`-D` and `-I` flags are not supported with the native backend', node.pos)
419
println(util.formatted_error('warn', '`-D` and `-I` flags are not supported with the native backend',
420
g.current_file.path, node.pos))
0 commit comments