Skip to content

Commit

Permalink
Merge pull request #76 from brave/x86_linux_package_sym_level_1
Browse files Browse the repository at this point in the history
symbol_level is set to 1 for x86 Linux
  • Loading branch information
AlexeyBarabash authored Apr 20, 2018
2 parents 071bf2a + d67487c commit 3f0d079
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions build/lib/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,19 @@ Config.prototype.buildArgs = function () {
args.is_win_fastlink = true
}

if (this.targetArch === 'x86' && process.platform === 'linux') {
// Minimal symbols for target Linux x86, because ELF32 cannot be > 4GiB
args.symbol_level = 1
}

// TODO: Build redirect-cc.cmd in such a way that it still works with ccache if configured
/*
let sccache = getNPMConfig(['sccache'])
if (sccache) {
args.cc_wrapper = sccache
}
*/

if (process.platform === 'win32') {
args.cc_wrapper = path.join(this.srcDir, 'brave', 'script' ,'redirect-cc.cmd')
} else {
Expand Down

0 comments on commit 3f0d079

Please sign in to comment.