summaryrefslogtreecommitdiffstats
path: root/third_party/bspatch/SConscript
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/bspatch/SConscript')
-rw-r--r--third_party/bspatch/SConscript8
1 files changed, 7 insertions, 1 deletions
diff --git a/third_party/bspatch/SConscript b/third_party/bspatch/SConscript
index 0df2882..cdd079f 100644
--- a/third_party/bspatch/SConscript
+++ b/third_party/bspatch/SConscript
@@ -27,6 +27,9 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# TODO(keunwoo): Use better cross-platform abstraction; see chrome/SConstruct
+Import('PLATFORM')
+
Import('env')
env = env.Clone(
@@ -42,11 +45,14 @@ env.Append(
CPPDEFINES = [
'_LZMA_IN_CB',
],
+)
+if PLATFORM == 'WINDOWS':
+ env.Append(
CCFLAGS = [
'/TP',
'/wd4800',
],
-)
+ )
input_files = [
'mbspatch.cc',