summaryrefslogtreecommitdiffstats
path: root/third_party/bsdiff/SConscript
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/bsdiff/SConscript')
-rw-r--r--third_party/bsdiff/SConscript8
1 files changed, 6 insertions, 2 deletions
diff --git a/third_party/bsdiff/SConscript b/third_party/bsdiff/SConscript
index adcf647..424139c 100644
--- a/third_party/bsdiff/SConscript
+++ b/third_party/bsdiff/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()
@@ -37,12 +40,13 @@ env.Prepend(
]
)
-env.Append(
+if PLATFORM == 'WINDOWS':
+ env.Append(
CCFLAGS = [
'/TP',
'/wd4800',
],
-)
+ )
input_files = [
"mbsdiff.cc",