[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[csmith-project/csmith] f4207b: Fix preprocessor check for inline asm



  Branch: refs/heads/master
  Home:   https://github.com/csmith-project/csmith
  Commit: f4207b8314fa88f60b0e337055f15f3525d557cc
      https://github.com/csmith-project/csmith/commit/f4207b8314fa88f60b0e337055f15f3525d557cc
  Author: Joergen Ibsen <ji@ibse.dk>
  Date:   2017-10-31 (Tue, 31 Oct 2017)

  Changed paths:
    M src/platform.cpp

  Log Message:
  -----------
  Fix preprocessor check for inline asm

With MSVC inline asm is only available when compiling for x86.
WIN32 is defined for all of x86, x64, and ARM. This checks for
MSVC and x86 instead.


  Commit: b58bdca58ea8e421b1006949abf1de3b091b3aaf
      https://github.com/csmith-project/csmith/commit/b58bdca58ea8e421b1006949abf1de3b091b3aaf
  Author: Eric Eide <eeide@cs.utah.edu>
  Date:   2017-10-31 (Tue, 31 Oct 2017)

  Changed paths:
    M src/platform.cpp

  Log Message:
  -----------
  Merge pull request #52 from jibsen/fix-platform-msvc

Fix preprocessor check for inline asm.

With MSVC inline asm is only available when compiling for x86. WIN32 is defined for all of x86, x64, and ARM. This checks for MSVC and x86 instead.

See
https://docs.microsoft.com/en-us/cpp/assembler/inline/inline-assembler
https://docs.microsoft.com/en-us/cpp/preprocessor/predefined-macros


Compare: https://github.com/csmith-project/csmith/compare/88701ebb1b83...b58bdca58ea8