Re: [v8-users] git cl upload fails on cpplint preexisting errors
Ah, I realize a wrong cpplint.py in /usr/bin was used. I adjusted my PATH order. Thanks, Jakob! On Wednesday, May 2, 2018 at 4:51:08 PM UTC-7, Jakob Kummerow wrote: > > "git cl lint" is known not to work for V8, becauses it doesn't go through > tools/presubmit.py which defines a few skipped linting rules (explaining > the reports you're seeing). > > "git cl presubmit" should work. > > "tools/presubmit.py" should work too. What does "which cpplint.py" return? > It should find the cpplint.py in depot_tools. > > On Wed, May 2, 2018 at 2:21 PM 'Hidy Han' via v8-users < > v8-u...@googlegroups.com > wrote: > >> When I run git cl upload, presubmit fails due to lint checker. git cl >> lint gives some errors on preexisting code: >> >> include/v8-inspector.h:5: #ifndef header guard has wrong style, please >> use: INCLUDE_V8_INSPECTOR_H_ [build/header_guard] [5] >> include/v8-inspector.h:290: #endif line should be "#endif // >> INCLUDE_V8_INSPECTOR_H_" [build/header_guard] [5] >> include/v8-inspector.h:228: Add #include for pair<> >> [build/include_what_you_use] [4] >> include/v8-inspector.h:66: Add #include for string >> [build/include_what_you_use] [4] >> include/v8-inspector.h:147: Add #include for vector<> >> [build/include_what_you_use] [4] >> Done processing include/v8-inspector.h >> src/inspector/v8-stack-trace-impl.cc:276: Add #include for >> string [build/include_what_you_use] [4] >> src/inspector/v8-stack-trace-impl.cc:372: Add #include for >> move [build/include_what_you_use] [4] >> Done processing src/inspector/v8-stack-trace-impl.cc >> Total errors found: 7 >> >> git cl presubmit -v shows that errors are found by ~/v8/v8/PRESUBMIT.py. >> If I run tools/presubmit.py, C++ lint check shows "Failed to process ..." >> on all files. >> >> Does someone know what is this error about? >> Thanks! >> >> -- >> -- >> v8-users mailing list >> v8-u...@googlegroups.com >> http://groups.google.com/group/v8-users >> --- >> You received this message because you are subscribed to the Google Groups >> "v8-users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to v8-users+u...@googlegroups.com . >> For more options, visit https://groups.google.com/d/optout. >> > -- -- v8-users mailing list v8-users@googlegroups.com http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to v8-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [v8-users] git cl upload fails on cpplint preexisting errors
"git cl lint" is known not to work for V8, becauses it doesn't go through tools/presubmit.py which defines a few skipped linting rules (explaining the reports you're seeing). "git cl presubmit" should work. "tools/presubmit.py" should work too. What does "which cpplint.py" return? It should find the cpplint.py in depot_tools. On Wed, May 2, 2018 at 2:21 PM 'Hidy Han' via v8-users < v8-users@googlegroups.com> wrote: > When I run git cl upload, presubmit fails due to lint checker. git cl lint > gives some errors on preexisting code: > > include/v8-inspector.h:5: #ifndef header guard has wrong style, please > use: INCLUDE_V8_INSPECTOR_H_ [build/header_guard] [5] > include/v8-inspector.h:290: #endif line should be "#endif // > INCLUDE_V8_INSPECTOR_H_" [build/header_guard] [5] > include/v8-inspector.h:228: Add #include for pair<> > [build/include_what_you_use] [4] > include/v8-inspector.h:66: Add #include for string > [build/include_what_you_use] [4] > include/v8-inspector.h:147: Add #include for vector<> > [build/include_what_you_use] [4] > Done processing include/v8-inspector.h > src/inspector/v8-stack-trace-impl.cc:276: Add #include for > string [build/include_what_you_use] [4] > src/inspector/v8-stack-trace-impl.cc:372: Add #include for > move [build/include_what_you_use] [4] > Done processing src/inspector/v8-stack-trace-impl.cc > Total errors found: 7 > > git cl presubmit -v shows that errors are found by ~/v8/v8/PRESUBMIT.py. > If I run tools/presubmit.py, C++ lint check shows "Failed to process ..." > on all files. > > Does someone know what is this error about? > Thanks! > > -- > -- > v8-users mailing list > v8-users@googlegroups.com > http://groups.google.com/group/v8-users > --- > You received this message because you are subscribed to the Google Groups > "v8-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to v8-users+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- -- v8-users mailing list v8-users@googlegroups.com http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to v8-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [v8-users] Building v8 as a static library generates build errors, but ptoduces usable libraries
On Saturday, 28 April 2018 05:30:17 UTC-4, Ben Noordhuis wrote: > > the CRT linking logic is effectively hard-coded in > build/config/win/BUILD.gn; look for 'default_crt'. You could try > sending a CL that adds a build flag to override the default or simply > patch the file locally. > Ben, thank you for pointing out where to change the CRT type in the GN build. You saved me a ton of time trying to figure out how to do it. After spending a few hours trying to isolate memory allocations in a large app I ended up changing `default_crt` to `dynamic_crt` and it's working fine in all of my tests. The application I'm working on is a Windows app, but it will be ported to Linux at some point. Do you know if the static v8 libraries link against a static `libstdc++` or any other critical libraries like this one? Thanks, again. -- -- v8-users mailing list v8-users@googlegroups.com http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to v8-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[v8-users] git cl upload fails on cpplint preexisting errors
When I run git cl upload, presubmit fails due to lint checker. git cl lint gives some errors on preexisting code: include/v8-inspector.h:5: #ifndef header guard has wrong style, please use: INCLUDE_V8_INSPECTOR_H_ [build/header_guard] [5] include/v8-inspector.h:290: #endif line should be "#endif // INCLUDE_V8_INSPECTOR_H_" [build/header_guard] [5] include/v8-inspector.h:228: Add #include for pair<> [build/include_what_you_use] [4] include/v8-inspector.h:66: Add #include for string [build/include_what_you_use] [4] include/v8-inspector.h:147: Add #include for vector<> [build/include_what_you_use] [4] Done processing include/v8-inspector.h src/inspector/v8-stack-trace-impl.cc:276: Add #include for string [build/include_what_you_use] [4] src/inspector/v8-stack-trace-impl.cc:372: Add #include for move [build/include_what_you_use] [4] Done processing src/inspector/v8-stack-trace-impl.cc Total errors found: 7 git cl presubmit -v shows that errors are found by ~/v8/v8/PRESUBMIT.py. If I run tools/presubmit.py, C++ lint check shows "Failed to process ..." on all files. Does someone know what is this error about? Thanks! -- -- v8-users mailing list v8-users@googlegroups.com http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to v8-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[v8-users] How to use v8::Module to export a global object?
I have tried, but someting confused , such as the interface InstantiateModule, what's the effect of the second parameter ResolveCallback? I just want to support "export and import", Can somebody help me show me how? -- -- v8-users mailing list v8-users@googlegroups.com http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to v8-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.