Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(201)

Unified Diff: build/get_byteorder.py

Issue 2815453004: For building v8 using gn on aix_ppc64, linux_s390x and linux_ppc64. (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: build/get_byteorder.py
diff --git a/build/get_byteorder.py b/build/get_byteorder.py
new file mode 100755
index 0000000000000000000000000000000000000000..084bb0d38a5dc81f5a3048385f595239a8634eb8
--- /dev/null
+++ b/build/get_byteorder.py
@@ -0,0 +1,16 @@
+#!/usr/bin/env python
+# Copyright 2014 The Chromium Authors. All rights reserved.
Michael Achenbach 2017/04/18 13:46:04 nit: 2017
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+"""Get Byteorder of host architecture"""
+
+
+import sys
+
+def main():
+ print sys.byteorder
+ return 0
+
+if __name__ == '__main__':
+ sys.exit(main())
Michael Achenbach 2017/04/18 13:46:04 nit: Wonder if the boiler plate is necessary. Mayb

Powered by Google App Engine
This is Rietveld 408576698