author Ted Mielczarek <>
Thu, 14 Dec 2017 10:20:33 -0600
changeset 448896 b5c9bb05168d5ce9c92f500d25516b19d0a3062a
parent 435808 67a8e12324569dd730347187e2ffccae486c758b
permissions -rw-r--r--
bug 1401647 - use a 64-bit Rust toolchain for win32 builds. r=rillian We currently use a 32-bit Rust toolchain for win32 builds, but this can lead to OOM situations. This patch makes win32 builds use a 64-bit Rust toolchain, which requires a little bit of extra configuration because rustc needs to be able to find a link.exe that produces 64-bit binaries for building things like build scripts, which are host binaries. We will now generate a batch file that sets LIB to the paths to 64-bit libraries and invokes the x64-targeting link.exe, and add a section to the .cargo/config file to instruct cargo to use that batch file as the linker when producing 64-bit binaries. MozReview-Commit-ID: 9vKBbm7Gvra

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at */

#ifndef nsContentTestNode_h__
#define nsContentTestNode_h__

#include "mozilla/Attributes.h"
#include "nscore.h"
#include "nsRuleNetwork.h"
#include "nsAtom.h"
#include "nsIDOMDocument.h"

class nsXULTemplateQueryProcessorRDF;

 * The nsContentTestNode is always the top node in a query's rule network. It
 * exists so that Constrain can filter out resources that aren't part of a
 * result.
class nsContentTestNode : public TestNode
    nsContentTestNode(nsXULTemplateQueryProcessorRDF* aProcessor,
                      nsAtom* aContentVariable);

    virtual nsresult FilterInstantiations(InstantiationSet& aInstantiations,
                                          bool* aCantHandleYet) const override;

    Constrain(InstantiationSet& aInstantiations) override;

    void SetTag(nsAtom* aTag, nsIDOMDocument* aDocument)
        mTag = aTag;
        mDocument = aDocument;

    nsXULTemplateQueryProcessorRDF *mProcessor;
    nsIDOMDocument* mDocument;
    RefPtr<nsAtom> mRefVariable;
    RefPtr<nsAtom> mTag;

#endif // nsContentTestNode_h__