Jamfile.v2 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. #==============================================================================
  2. # Copyright 2014 LRI UMR 8623 CNRS/Univ Paris Sud XI
  3. # Copyright 2014 NumScale SAS
  4. #
  5. # Distributed under the Boost Software License, Version 1.0.
  6. # See accompanying file LICENSE.txt or copy at
  7. # http://www.boost.org/LICENSE_1_0.txt
  8. #==============================================================================
  9. use-project boost : $(BOOST_ROOT) ;
  10. import os ;
  11. # This must be built using an NT2 installation.
  12. # NT2_ROOT_PATH should point to the build directory.
  13. # Currently, cxxflags needs to be set to the required architecture
  14. # if using avx/avx2, set the environemnt variable NT2_SIMD_FLAGS to the
  15. # required value for your compiler (i.e. -mavx2 on g++)
  16. # If using sse2/3/4 in 64 bits, this is set automatically.
  17. local NT2_ROOT_PATH = [ os.environ NT2_ROOT_PATH ] ;
  18. local NT2_SIMD_FLAGS = [ os.environ NT2_SIMD_FLAGS ] ;
  19. project
  20. : requirements
  21. <define>BOOST_ALL_NO_LIB=1
  22. <include>$(NT2_ROOT_PATH)/include/
  23. <link>static
  24. <toolset>gcc:<cxxflags>-DBOOST_SIMD_NO_STRICT_ALIASING
  25. <toolset>gcc:<cxxflags>-fno-strict-aliasing
  26. <cxxflags>$(NT2_SIMD_FLAGS)
  27. ;
  28. exe phase_oscillator_ensemble : phase_oscillator_ensemble.cpp ;