build: fix bug in partition system Jamfiles
Header files need to be included into a source file, not depended on. Using depends changes *.cpp from a source file to a generated file. Jam has a bug in dependency resolution that allows this to work, but this breaks in Ham. Change-Id: I584c719d353adbfdb68ddad5d05e7085f635ae28 Reviewed-on: https://review.haiku-os.org/c/haiku/+/5625 Tested-by: Commit checker robot <[email protected]> Reviewed-by: waddlesplash <[email protected]> Reviewed-by: Stephan Aßmus <[email protected]>
This commit is contained in:
committed by
Stephan Aßmus
parent
aabcd6b399
commit
c97e32fed2
@@ -16,7 +16,7 @@ DataFileToSourceFile [ FGristFiles MBR.h ] : [ FGristFiles mbr.bin ]
|
||||
: kMBR : kMBRSize ;
|
||||
|
||||
if $(TARGET_ARCH) = "x86" || $(TARGET_ARCH) = "x86_64" {
|
||||
Depends [ FGristFiles PartitionMapWriter.cpp ] : [ FGristFiles MBR.h ] ;
|
||||
Includes [ FGristFiles PartitionMapWriter.cpp ] : [ FGristFiles MBR.h ] ;
|
||||
}
|
||||
|
||||
KernelAddon efi_gpt :
|
||||
|
||||
@@ -11,7 +11,7 @@ DataFileToSourceFile [ FGristFiles MBR.h ] : [ FGristFiles mbr.bin ]
|
||||
: kMBR : kMBRSize ;
|
||||
|
||||
if $(TARGET_ARCH) = "x86" || $(TARGET_ARCH) = "x86_64" {
|
||||
Depends [ FGristFiles PartitionMapWriter.cpp ] : [ FGristFiles MBR.h ] ;
|
||||
Includes [ FGristFiles PartitionMapWriter.cpp ] : [ FGristFiles MBR.h ] ;
|
||||
}
|
||||
|
||||
KernelAddon intel :
|
||||
|
||||
Reference in New Issue
Block a user