Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pass real cc_wrapper in env var #89

Merged
merged 1 commit into from Mar 6, 2018
Merged

pass real cc_wrapper in env var #89

merged 1 commit into from Mar 6, 2018

Conversation

@bridiver
Copy link
Collaborator

bridiver commented Mar 6, 2018

No description provided.

@garrettr
Copy link
Contributor

garrettr commented Mar 6, 2018

Just tested this on macOS, following the instructions from https://github.com/brave/brave/issues/83#issue-301264707 to set up sccache, and got a compilation error:

$ yarn build --debug_build=true --official_build=false
yarn run v1.5.1
$ node ./scripts/commands.js build --debug_build=true --official_build=false
update branding...
building brave...
gn gen /Users/garrettr/brave/src/out/Release --args="root_extra_deps=[\"//brave\"] is_component_build=false proprietary_codecs=true ffmpeg_branding=\"Chrome\" enable_widevine=true target_cpu=\"x64\" is_official_build=false is_debug=false dcheck_always_on=false antimuon_google_api_key=\"AIzaSyAQfxPJiounkhOjODEO5ZieffeBv6yft2Q\" antimuon_google_api_endpoint=\"https://www.googleapis.com/geolocation/v1/geolocate?key=\" antimuon_product_name=\"Brave\" antimuon_project_name=\"brave\" antimuon_version_major=\"1\" antimuon_version_minor=\"0\" antimuon_version_build=\"0\" mac_signing_identifier=\"\" enable_stripping=false symbol_level=2 enable_profiling=true is_win_fastlink=true cc_wrapper=\"/Users/garrettr/brave/src/brave/script/redirect-cc.py\" "
Done. Made 7793 targets from 1481 files in 4120ms
ninja -C /Users/garrettr/brave/src/out/Release brave
ninja: Entering directory `/Users/garrettr/brave/src/out/Release'
[529/29091] CXX obj/components/language/content/browser/language_code_locator/language_code_locator.o
FAILED: obj/components/language/content/browser/language_code_locator/language_code_locator.o 
/Users/garrettr/brave/src/brave/script/redirect-cc.py ../../third_party/llvm-build/Release+Asserts/bin/clang++ -MMD -MF obj/components/language/content/browser/language_code_locator/language_code_locator.o.d -DV8_DEPRECATION_WARNINGS -DNO_TCMALLOC -DFULL_SAFE_BROWSING -DSAFE_BROWSING_CSD -DSAFE_BROWSING_DB_LOCAL -DCHROMIUM_BUILD -DFIELDTRIAL_TESTING_ENABLED -DCR_XCODE_VERSION=0920 -DCR_CLANG_REVISION=\"321529-2\" -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FORTIFY_SOURCE=2 -D__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORE=0 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -I../../brave/chromium_src -I../.. -Igen -I../../third_party/s2cellid/src -fno-strict-aliasing -fstack-protector -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -fcolor-diagnostics -Xclang -mllvm -Xclang -instcombine-lower-dbg-declare=0 -no-canonical-prefixes -arch x86_64 -Wall -Werror -Wextra -Wunguarded-availability -Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing -Wno-covered-switch-default -Wno-unneeded-internal-declaration -Wno-inconsistent-missing-override -Wno-undefined-var-template -Wno-nonportable-include-path -Wno-address-of-packed-member -Wno-unused-lambda-capture -Wno-user-defined-warnings -Wno-enum-compare-switch -Wno-tautological-unsigned-zero-compare -Wno-null-pointer-arithmetic -Wno-tautological-constant-compare -Wtautological-constant-out-of-range-compare -O0 -fno-omit-frame-pointer -gdwarf-2 -isysroot ../../../../../../Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk -mmacosx-version-min=10.9.0 -fvisibility=hidden -Xclang -load -Xclang ../../third_party/llvm-build/Release+Asserts/lib/libFindBadConstructs.dylib -Xclang -add-plugin -Xclang find-bad-constructs -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -std=c++14 -stdlib=libc++ -fno-exceptions -fno-rtti -fvisibility-inlines-hidden -c ../../components/language/content/browser/language_code_locator.cc -o obj/components/language/content/browser/language_code_locator/language_code_locator.o
In file included from ../../components/language/content/browser/language_code_locator.cc:8:
In file included from ../../third_party/s2cellid/src/s2/s2cellid.h:28:
../../third_party/s2cellid/src/s2/_fpcontractoff.h:52:14: error: unknown pragma in STDC namespace [-Werror,-Wunknown-pragmas]
#pragma STDC FP_CONTRACT OFF
             ^
1 error generated.
[538/29091] ACTION //components/resources:about_credits(//build/toolchain/mac:clang_x64)
ninja: build stopped: subcommand failed.
@bridiver
Copy link
Collaborator Author

bridiver commented Mar 6, 2018

@bbondy
bbondy approved these changes Mar 6, 2018
@bbondy bbondy merged commit a4180b0 into master Mar 6, 2018
Copy link
Contributor

AlexeyBarabash left a comment

++

@bridiver
Copy link
Collaborator Author

bridiver commented Mar 7, 2018

@cezaraugusto cezaraugusto deleted the fix/83 branch Jul 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

4 participants
You can’t perform that action at this time.