intelc_posix-any.py 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. # INTEL CORPORATION PROPRIETARY INFORMATION
  2. # This software is supplied under the terms of a license agreement or
  3. # nondisclosure agreement with Intel Corporation and may not be copied or
  4. # disclosed except in accordance with the terms of that agreement
  5. # Copyright(c) 2016 Intel Corporation. All Rights Reserved.
  6. """ Defines build configuration for Parts """
  7. from parts.config import *
  8. def map_default_version(env):
  9. return env['INTELC_VERSION']
  10. config = configuration(map_default_version)
  11. config.VersionRange("7-*",
  12. append=ConfigValues(
  13. CCFLAGS=['',
  14. # second level optimization
  15. '-O2',
  16. # treat warnings as errors
  17. '-Werror',
  18. # enable all warnings
  19. '-Wall',
  20. # extra warnings
  21. '-Wextra',
  22. # pedantic warnings
  23. # '-Wpedantic',
  24. ],
  25. CXXFLAGS=['',
  26. # modern C++ features support
  27. '-std=c++0x',
  28. ]
  29. )
  30. )