Changeset a0a273e in mainline for HelenOS.config


Ignore:
Timestamp:
2017-10-03T18:12:17Z (7 years ago)
Author:
jzr <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a41cda7
Parents:
0f28387
Message:

Unify compiler handling a bit.

Most compiler flags have been changed from GCC-specific to "common",
since code might build but not work properly without them.
Clang still rejects some of the flags, but at least we can see
the incompatibilities now.

Explicit —target flag was removed from clang, in favor of using clang
through a target-specific symlink. This allows clang to automatically
find correct assembler and linker, if it needs to.

Additionally, assembly language files are now compiled using $(CC)
whether or not they need the preprocessor. This allows clang to build
.s files using its integrated assembler.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • HelenOS.config

    r0f28387 ra0a273e  
    300300@ "icc" Intel C Compiler
    301301@ "gcc_native" GNU C Compiler (native)
    302 ! [PLATFORM=amd64|PLATFORM=ia32] COMPILER (choice)
    303 
    304 % Compiler
    305 @ "gcc_cross" GNU C Compiler (cross-compiler)
    306 @ "gcc_helenos" GNU C Compiler (experimental HelenOS-specific cross-compiler)
    307 @ "icc" Intel C Compiler
    308 @ "gcc_native" GNU C Compiler (native)
    309 ! [PLATFORM=ia64] COMPILER (choice)
    310 
    311 % Compiler
    312 @ "gcc_cross" GNU C Compiler (cross-compiler)
    313 @ "gcc_helenos" GNU C Compiler (experimental HelenOS-specific cross-compiler)
    314 @ "gcc_native" GNU C Compiler (native)
    315 ! [PLATFORM=riscv64] COMPILER (choice)
     302! [PLATFORM=amd64|PLATFORM=ia32|PLATFORM=ia64] COMPILER (choice)
    316303
    317304% Compiler
     
    320307@ "gcc_helenos" GNU C Compiler (experimental HelenOS-specific cross-compiler)
    321308@ "gcc_native" GNU C Compiler (native)
    322 ! [PLATFORM=mips32|PLATFORM=ppc32|PLATFORM=abs32le|PLATFORM=arm32|PLATFORM=sparc64] COMPILER (choice)
    323 
     309! [PLATFORM=mips32|PLATFORM=ppc32|PLATFORM=abs32le|PLATFORM=arm32|PLATFORM=sparc64|PLATFORM=riscv64] COMPILER (choice)
     310
     311% Clang Integrated Assembler
     312@ "default" Use architecture default.
     313@ "yes" Use integrated assembler.
     314@ "no" Use GNU Assembler.
     315! [COMPILER=clang] INTEGRATED_AS (choice)
    324316
    325317## Cross-compiler target for abstract architecture
Note: See TracChangeset for help on using the changeset viewer.