Some CUDA 6 samples do not compile in 32-bit mode under Mac OS 10.9

For example, when trying to compile the asyncAPI sample, we are getting the following error:

/Developer/NVIDIA/CUDA-6.0/bin/nvcc -ccbin clang -m32 -Xcompiler -arch -Xcompiler i686 -Xlinker -rpath -Xlinker /Developer/NVIDIA/CUDA-6.0/lib -gencode arch=compute_10,code=sm_10 -gencode arch=compute_20,code=sm_20 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_32,code=sm_32 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_50,code=sm_50 -gencode arch=compute_50,code=compute_50 -o asyncAPI asyncAPI.o
nvcc warning : The 'compute_10' and 'sm_10' architectures are deprecated, and may be removed in a future release.
clang: error: unknown argument: '-malign-double' [-Wunused-command-line-argument-hard-error-in-future]
clang: note: this will be a hard error (cannot be downgraded to a warning) in the future

Steps to reproduce:

  1. Install CUDA Toolkit 6 with samples
  2. cd to NVIDIA_CUDA-6.0_Samples/0_Simple/asyncAPI
  3. execute "make i386=1"

That is because 32-bit is not supported with clang, see http://docs.nvidia.com/cuda/cuda-toolkit-release-notes/index.html#cuda-compiler-known-issues