The build system that V8 uses is not straightforward. Assume I desired to add -save-temps to the build flags to keep all intermediate files produced during compilation. Where would I specify this information? Do you specify it in a particular command? Does it have to be added to a special build configuration file?
Compile GN-based projects with modified compiler flags
1.4k views Asked by Melab At
1
There are 1 answers
Related Questions in GN
- Chromium android runtime issue
- Add a new png file to views_examples_resources.grd
- How can I fix chromium build gclient error?
- skia failed to follow build instructions
- `gn gen` gives `ERROR Need exactly one build directory to generate`
- How do I safely distribute a ninja component build?
- Coverage parameters of the clang code coverage function change the code logic?
- Regarding the issue of compiling WebRTC using VS
- Chromium build with ninja failed in ubuntu22.04
- Linux setup issue with starboard for Cobalt
- BUILD.gn: how to add all .c files in one directory into sources
- GN not Working When Trying To Make Chromium
- Specifying install/output dir for lib and executables generated by gn/ninja
- Issues with building Google V8 versions 10.x/11.x with Visual Studio 2019 (9.x is ok)
- chromium build error gn gen out/Default in Ubuntu
Related Questions in CFLAGS
- What kind of warnings is -isystem in gcc supposed to ignore?
- react-native module - automatic CFlags
- How can i set a define in a makefile with multiple executables
- __stack_chk_fail_local and -fno-stack-protector - how to get it working?
- Prepending custom dirs ($ZPFX/{include,libs}) to CPP..../LDFLAGS with use of config.site file of autotools?
- g++: error: unrecognized command-line option '--cflags' g++: error: unrecognized command-line option '--libs`'
- emsdk compilation. what flags do i needfor sucsess?
- Cython compiler - fatal error C1083: Cannot open include file
- Trying to compile LinuxSamplers via g++
- Compile GN-based projects with modified compiler flags
- Trying to build test-launch.c for gstreamer but fails to build
- Search and Replace CFLAGS in a target
- warning: arithmetic between different enumeration types (x and y) is deprecated How closed?
- HxCPP Add Include Paths and Linker Options
- Building Opencv using c++ error: undefined reference to `cv::Mat::deallocate()'
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
(This question isn't really about V8, but rather the GN build system.)
GN is intentionally designed to take all build configuration from files (which you can check into git/etc for reproducible builds), rather than command-line flags and environment variables. So any extra compiler flags also have to be specified via files. Specifically, you can edit any of the
cflags = ...orcflags += ...definitions that apply to the compilation units in question. In case of V8, you can e.g. add your flag to thecflags = []initialization here, or you could make a similar change inbuild/config/compiler/BUILD.gn, which will also affect any dependencies.