Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Issue 4881243963392000: Fix the platform preprocessor defines (Closed)

Created:
July 24, 2014, 6:55 a.m. by Oleksandr
Modified:
July 24, 2014, 7:59 p.m.
Reviewers:
sergei, Felix Dahlke, Eric
Visibility:
Public.

Description

Looks like we are actually using defines with the underscore in the code. In resource compiler this actually causes an error, when a 64-bit build is running without the _WIN64 defined.

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -2 lines) Patch
M defaults.gypi View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 8
Oleksandr
July 24, 2014, 6:57 a.m. (2014-07-24 06:57:33 UTC) #1
Felix Dahlke
LGTM, although I'm not a reviewer :P
July 24, 2014, 7:01 a.m. (2014-07-24 07:01:10 UTC) #2
sergei
Could we just remove it? These macros should be already defined by the compiler, we ...
July 24, 2014, 10:14 a.m. (2014-07-24 10:14:09 UTC) #3
sergei
The link turned broken, the second attempt http://msdn.microsoft.com/en-us/library/b0084kay(v=vs.110).aspx
July 24, 2014, 10:15 a.m. (2014-07-24 10:15:33 UTC) #4
Oleksandr
Try deleting all your build files and then try building a 64-bit build. Resource compile ...
July 24, 2014, 10:18 a.m. (2014-07-24 10:18:42 UTC) #5
Oleksandr
Also, maybe removing it isn't such a good idea since the C++ compiler might define ...
July 24, 2014, 10:22 a.m. (2014-07-24 10:22:26 UTC) #6
sergei
Thanks, LGTM
July 24, 2014, 10:29 a.m. (2014-07-24 10:29:52 UTC) #7
Eric
July 24, 2014, 11:27 a.m. (2014-07-24 11:27:30 UTC) #8
On 2014/07/24 10:18:42, Oleksandr wrote:
> Resource
> compile will try to use TYPELIB "../../build/ia32/AdblockPlus.tlb" instead of
a
> 64-bit version, and that is unavailable in that case.

We could simplify all this by removing the type library completely. It's not
used by IE to bind the BHO, which means that it's not used at all. The typelib
declaration is, as I recall, an artifact of having used a wizard to set up the
initial project. Otherwise compiling a type library is a harmless tiny bit of
extra build time.

It might be worth an experiment just to remove the typelib declaration and see
if these platform defines are still needed at all.

LGTM, because this is an expedient to fix a build defect with little other
consequence.

Powered by Google App Engine
This is Rietveld