Skip to content

Commit

Permalink
Merge branch 'fix_dbg_compile' into 'master'
Browse files Browse the repository at this point in the history
add dbg compile config

See merge request data/monolith!1987

GitOrigin-RevId: d4cdfef38c34bd130ddbd05c126592ebb930071b
  • Loading branch information
黄瑞腾 authored and zlqiszlqbd committed Mar 3, 2023
1 parent 00f7afb commit 8125c25
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,16 @@ build -c opt
build --cxxopt=-std=c++14
build --host_cxxopt=-std=c++14

# preventing relocation overflow error
build:dbg --copt=-gsplit-dwarf

# dbg config, copied from tensorflow v2.4.0
build:dbg -c dbg
# for now, disable arm_neon. see: https://github.com/tensorflow/tensorflow/issues/33360
build:dbg --cxxopt -DTF_LITE_DISABLE_X86_NEON
# AWS SDK must be compiled in release mode. see: https://github.com/tensorflow/tensorflow/issues/37498
build:dbg --copt -DDEBUG_BUILD

# Adding "--cxxopt=-D_GLIBCXX_USE_CXX11_ABI=0" creates parity with TF
# compilation options. It also addresses memory use due to
# copy-on-write semantics of std::strings of the older ABI.
Expand Down

0 comments on commit 8125c25

Please sign in to comment.