Skip to content

Commit

Permalink
Disable GCC VTA for SWIG-generated file (#1253)
Browse files Browse the repository at this point in the history
Fix sonic-net/sonic-buildimage#13775

-fvar-tracking-assignments
Annotate assignments to user variables early in the compilation and attempt to carry the annotations over throughout the compilation all the way to the end, in an attempt to improve debug information while optimizing.
By default, this flag is enabled.

There is no reason to use this flag for auto-generated code.
  • Loading branch information
k-v1 authored Jun 19, 2023
1 parent 00a953c commit 321ce74
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pyext/pysairedis.i
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
%include "carrays.i"

%{
#pragma GCC optimize("no-var-tracking-assignments")

#include "pysairedis.h"

extern "C"{
Expand Down

0 comments on commit 321ce74

Please sign in to comment.