Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

closes #4688 add support for linux on s390/s390x #4810

Merged
merged 5 commits into from Mar 25, 2019
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

add test for compiler flags

  • Loading branch information...
scddev committed Mar 24, 2019
commit 524201b9a90ae5d3b702a7f62452e422fb778629
@@ -32,12 +32,21 @@ def test_arch_flag(self):
arch_flag = architecture_flag(arch='armv7', compiler=compiler)
self.assertEqual(arch_flag, '')

for compiler in ("gcc", "clang", "sun-cc"):
arch_flag = architecture_flag(arch='s390', compiler=compiler)
self.assertEqual(arch_flag, '-m31')

for compiler in ("gcc", "clang", "sun-cc"):
arch_flag = architecture_flag(arch='s390x', compiler=compiler)
self.assertEqual(arch_flag, '-m64')

arch_flag = architecture_flag(arch='x86', compiler='Visual Studio')
self.assertEqual(arch_flag, '')

arch_flag = architecture_flag(arch='x86_64', compiler='Visual Studio')
self.assertEqual(arch_flag, '')


def test_libcxx_flags(self):
arch_define = libcxx_define(compiler='gcc', libcxx='libstdc++')
self.assertEqual(arch_define, '_GLIBCXX_USE_CXX11_ABI=0')
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.