LLVM Discussion Forums

Cross compiling llvm for armv7a on x86

while cross compiling llvm on x86 for armv7a, when i run the below command
sudo cmake -G -DCMAKE_C_FLAGS=“build-c-flags”
i got this error
CMake Error: Could not create named generator -DCMAKE_C_FLAGS=build-c-flags

Generators

  • Unix Makefiles = Generates standard UNIX makefiles.
    Green Hills MULTI = Generates Green Hills MULTI files
    (experimental, work-in-progress).
    Ninja = Generates build.ninja files.
    Ninja Multi-Config = Generates build-.ninja files.
    Watcom WMake = Generates Watcom WMake makefiles.
    CodeBlocks - Ninja = Generates CodeBlocks project files.
    CodeBlocks - Unix Makefiles = Generates CodeBlocks project files.
    CodeLite - Ninja = Generates CodeLite project files.
    CodeLite - Unix Makefiles = Generates CodeLite project files.
    Sublime Text 2 - Ninja = Generates Sublime Text 2 project files.
    Sublime Text 2 - Unix Makefiles
    = Generates Sublime Text 2 project files.
    Kate - Ninja = Generates Kate project files.
    Kate - Unix Makefiles = Generates Kate project files.
    Eclipse CDT4 - Ninja = Generates Eclipse CDT 4.0 project files.
    Eclipse CDT4 - Unix Makefiles= Generates Eclipse CDT 4.0 project files.

so i request suggestion to resolve this error

With -G flag specify your generator like ninja, make etc so you have to write cmake -G Ninja ... .
See LLVM cross compiling documentation.